summaryrefslogtreecommitdiffstats
path: root/usr.bin/sendbug/sendbug.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Certain errors in editit() should be fatal.ray2007-03-261-2/+3
|
* Don't print warnings in editit(), instead make errno reliable onray2007-03-261-7/+6
| | | | | | failure. If the editor exits non-zero, errno is set to ECHILD. OK deraadt@.
* Accept $VISUAL in addition to $EDITOR.ray2007-03-261-2/+5
|
* Save and restore signal handlers. Although we do not install ourray2007-03-261-10/+11
| | | | | | | own signal handlers, this allows this code to be more easily reused in other programs. OK deraadt@
* Restore errno before calling perror().ray2007-03-261-1/+2
|
* Check fork() == -1 instead of fork() < 0.ray2007-03-261-2/+2
|
* When someone hits ^C in an editor, the editor does exit(130), Iray2007-03-261-4/+1
| | | | | | | | | don't know why. Something to do with the shell, says deraadt@. Continuing to ignore these signals in the child fixes this. Now editit()'s return value can be reliably checked. OK deraadt@.
* more careful waitpid() discussed with ray (plus some knf)deraadt2007-03-261-15/+19
|
* fork() does not return EPROCLIM, so don't test for it.ray2007-03-251-6/+1
|
* more cleaning :)deraadt2007-03-251-35/+28
|
* Change editit() to return -1 on error and 0 on success, like manyray2007-03-251-6/+6
| | | | other C functions. (Currently this return value is unchecked.)
* KNF.ray2007-03-251-5/+5
|
* Save errno before calling signal().ray2007-03-251-3/+5
|
* correct signal handling and process waiting for the editor spawningderaadt2007-03-231-18/+63
| | | | | code, so that signals in the editor are handled right. written by ray after he started looking at other code that does this better
* Since we now have our own program, we can export more things thatderaadt2007-03-231-4/+23
| | | | matter. Include kern.version, which tells a hell of a lot. ok millert ray
* Replace `&' in gecos field with login, prodded by deraadt@.ray2007-03-231-7/+34
|
* simplify cleanup by using an atexit handler. lets us use err() insteadtedu2007-03-231-42/+36
| | | | | of a series of warn()/gotos. ok deraadt
* re-org something for prettinessderaadt2007-03-231-3/+5
|
* support $PR_FORM environment variablederaadt2007-03-231-3/+26
|
* Don't insert double slashes ("/tmp//p.XXXXXXXXXX") if TMPDIR endsray2007-03-231-2/+3
| | | | in "/". Helps emacs and deraadt@.
* Support command-line arguments in $EDITOR. Prodded by deraadt@.ray2007-03-231-4/+6
|
* spacingderaadt2007-03-231-3/+3
|
* -V in usagederaadt2007-03-231-2/+2
|
* add -V (version) supportderaadt2007-03-231-5/+9
|
* Get rid of silly gcc warning.ray2007-03-231-2/+5
| | | | OK deraadt@.
* handle the -L and -P options; ok rayderaadt2007-03-231-2/+29
|
* some minor KNF, including sentinals; ok rayderaadt2007-03-231-9/+9
|
* Import public domain rewrite of sendbug, written by Ray Lai. =)ray2007-03-231-0/+315
Replaces GNU sendbug/sendpr, the wonderful shell script that had trouble dealing with signals, behaved differently depending on what file it read upon startup, and suffered from issues plaguing most large shell scripts. OK deraadt@.