#
ecdc3c8b |
| 26-Mar-2007 |
ray <ray@openbsd.org> |
Remove pointless cast. No binary change.
|
#
f27d80da |
| 26-Mar-2007 |
ray <ray@openbsd.org> |
Break on waitpid success; we shouldn't continue on WIFSIGNALED, and WIFCONTINUED can't happen in this case.
OK deraadt@.
|
#
648f0ffc |
| 26-Mar-2007 |
ray <ray@openbsd.org> |
Certain errors in editit() should be fatal.
|
#
2bba59c0 |
| 26-Mar-2007 |
ray <ray@openbsd.org> |
Don't print warnings in editit(), instead make errno reliable on failure. If the editor exits non-zero, errno is set to ECHILD.
OK deraadt@.
|
#
c8a426ad |
| 26-Mar-2007 |
ray <ray@openbsd.org> |
Accept $VISUAL in addition to $EDITOR.
|
#
8ec2d82e |
| 26-Mar-2007 |
ray <ray@openbsd.org> |
Save and restore signal handlers. Although we do not install our own signal handlers, this allows this code to be more easily reused in other programs.
OK deraadt@
|
#
fac5405a |
| 26-Mar-2007 |
ray <ray@openbsd.org> |
Restore errno before calling perror().
|
#
7132776c |
| 26-Mar-2007 |
ray <ray@openbsd.org> |
Check fork() == -1 instead of fork() < 0.
|
#
6b66f907 |
| 26-Mar-2007 |
ray <ray@openbsd.org> |
When someone hits ^C in an editor, the editor does exit(130), I don't know why. Something to do with the shell, says deraadt@. Continuing to ignore these signals in the child fixes this.
Now editit
When someone hits ^C in an editor, the editor does exit(130), I 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@.
show more ...
|
#
6b1a1e2a |
| 26-Mar-2007 |
deraadt <deraadt@openbsd.org> |
more careful waitpid() discussed with ray (plus some knf)
|
#
e8348c68 |
| 25-Mar-2007 |
ray <ray@openbsd.org> |
fork() does not return EPROCLIM, so don't test for it.
|
#
f4348cb9 |
| 25-Mar-2007 |
deraadt <deraadt@openbsd.org> |
more cleaning :)
|
#
8af53ff7 |
| 25-Mar-2007 |
ray <ray@openbsd.org> |
Change editit() to return -1 on error and 0 on success, like many other C functions. (Currently this return value is unchecked.)
|
#
0c592fc1 |
| 25-Mar-2007 |
ray <ray@openbsd.org> |
KNF.
|
#
3c361d1b |
| 25-Mar-2007 |
ray <ray@openbsd.org> |
Save errno before calling signal().
|
#
4b9386a8 |
| 23-Mar-2007 |
deraadt <deraadt@openbsd.org> |
correct signal handling and process waiting for the editor spawning code, so that signals in the editor are handled right. written by ray after he started looking at other code that does this better
|
#
e051e8fa |
| 23-Mar-2007 |
deraadt <deraadt@openbsd.org> |
Since we now have our own program, we can export more things that matter. Include kern.version, which tells a hell of a lot. ok millert ray
|
#
49d07c37 |
| 23-Mar-2007 |
ray <ray@openbsd.org> |
Replace `&' in gecos field with login, prodded by deraadt@.
|
#
b2e65daa |
| 23-Mar-2007 |
tedu <tedu@openbsd.org> |
simplify cleanup by using an atexit handler. lets us use err() instead of a series of warn()/gotos. ok deraadt
|
#
823e89ef |
| 23-Mar-2007 |
deraadt <deraadt@openbsd.org> |
re-org something for prettiness
|
#
4ff3398a |
| 23-Mar-2007 |
deraadt <deraadt@openbsd.org> |
support $PR_FORM environment variable
|
#
795a8b97 |
| 23-Mar-2007 |
ray <ray@openbsd.org> |
Don't insert double slashes ("/tmp//p.XXXXXXXXXX") if TMPDIR ends in "/". Helps emacs and deraadt@.
|
#
6df8a6c0 |
| 23-Mar-2007 |
ray <ray@openbsd.org> |
Support command-line arguments in $EDITOR. Prodded by deraadt@.
|
#
00f8dc71 |
| 23-Mar-2007 |
deraadt <deraadt@openbsd.org> |
spacing
|
#
994a1f98 |
| 23-Mar-2007 |
deraadt <deraadt@openbsd.org> |
-V in usage
|