Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Certain errors in editit() should be fatal. | 2007-03-26 | 1 | -2/+3 | ||
| | ||||||
* | Don't print warnings in editit(), instead make errno reliable on | 2007-03-26 | 1 | -7/+6 | ||
| | | | | | | failure. If the editor exits non-zero, errno is set to ECHILD. OK deraadt@. | |||||
* | Accept $VISUAL in addition to $EDITOR. | 2007-03-26 | 1 | -2/+5 | ||
| | ||||||
* | Save and restore signal handlers. Although we do not install our | 2007-03-26 | 1 | -10/+11 | ||
| | | | | | | | own signal handlers, this allows this code to be more easily reused in other programs. OK deraadt@ | |||||
* | Restore errno before calling perror(). | 2007-03-26 | 1 | -1/+2 | ||
| | ||||||
* | Check fork() == -1 instead of fork() < 0. | 2007-03-26 | 1 | -2/+2 | ||
| | ||||||
* | When someone hits ^C in an editor, the editor does exit(130), I | 2007-03-26 | 1 | -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) | 2007-03-26 | 1 | -15/+19 | ||
| | ||||||
* | fork() does not return EPROCLIM, so don't test for it. | 2007-03-25 | 1 | -6/+1 | ||
| | ||||||
* | more cleaning :) | 2007-03-25 | 1 | -35/+28 | ||
| | ||||||
* | Change editit() to return -1 on error and 0 on success, like many | 2007-03-25 | 1 | -6/+6 | ||
| | | | | other C functions. (Currently this return value is unchecked.) | |||||
* | KNF. | 2007-03-25 | 1 | -5/+5 | ||
| | ||||||
* | Save errno before calling signal(). | 2007-03-25 | 1 | -3/+5 | ||
| | ||||||
* | correct signal handling and process waiting for the editor spawning | 2007-03-23 | 1 | -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 that | 2007-03-23 | 1 | -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@. | 2007-03-23 | 1 | -7/+34 | ||
| | ||||||
* | simplify cleanup by using an atexit handler. lets us use err() instead | 2007-03-23 | 1 | -42/+36 | ||
| | | | | | of a series of warn()/gotos. ok deraadt | |||||
* | re-org something for prettiness | 2007-03-23 | 1 | -3/+5 | ||
| | ||||||
* | support $PR_FORM environment variable | 2007-03-23 | 1 | -3/+26 | ||
| | ||||||
* | Don't insert double slashes ("/tmp//p.XXXXXXXXXX") if TMPDIR ends | 2007-03-23 | 1 | -2/+3 | ||
| | | | | in "/". Helps emacs and deraadt@. | |||||
* | Support command-line arguments in $EDITOR. Prodded by deraadt@. | 2007-03-23 | 1 | -4/+6 | ||
| | ||||||
* | spacing | 2007-03-23 | 1 | -3/+3 | ||
| | ||||||
* | -V in usage | 2007-03-23 | 1 | -2/+2 | ||
| | ||||||
* | add -V (version) support | 2007-03-23 | 1 | -5/+9 | ||
| | ||||||
* | Get rid of silly gcc warning. | 2007-03-23 | 1 | -2/+5 | ||
| | | | | OK deraadt@. | |||||
* | handle the -L and -P options; ok ray | 2007-03-23 | 1 | -2/+29 | ||
| | ||||||
* | some minor KNF, including sentinals; ok ray | 2007-03-23 | 1 | -9/+9 | ||
| | ||||||
* | Import public domain rewrite of sendbug, written by Ray Lai. =) | 2007-03-23 | 1 | -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@. |