summaryrefslogtreecommitdiffstats
path: root/usr.bin/window/wwspawn.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix the rcsid's.obrien2001-05-171-1/+2
|
* While I'm here and got caught by it, add FreeBSD IDs so the next guyobrien2000-10-261-0/+1
| | | | won't have trouble committing his bits.
* Make window(1) actually work again. It has been broken for quite somejoerg1999-03-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | time now. For whatever reason, the kernel seems to have generated SIGIOs previously without an initial fcntl(...,F_SETOWN), but does no longer. This caused window(1) to wait indefinitely for input. Also, undo rev 1.3 of wwspawn.c, it was not well-thought, and apparently not even tested at all. The blindly (even in a nonsensical place like the comment on top of the function) applied replacement of vfork() by fork() totally ignored that window(1) *does* abuse the feature of vfork() where a modification of the parent's address space is possible (in this case, to notify the parent of an erred exec*). Also, with vfork(), it is guaranteed that the parent is only woken up after the exec*() happened, where the replacement by fork() made the parent to almost always become runnable again before the child, in which case the parent simply told `subprocess died'. Unfortunately, working around _this_ seems to be a lot more of redesign work compared to little gained value, so i think relying on the specifics of vfork() is the simpler way. Submitted by: Philipp Mergenthaler <un1i@rz.uni-karlsruhe.de>
* One vfork() changed to fork(); one execl() changed to execv(). Thedes1998-10-131-2/+2
| | | | | latter isn't actually called as far as I can see since FreeBSD uses termcap and not terminfo.
* Use <signal.h> instead of <sys/signal.h>.dfr1998-08-051-1/+1
|
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+85
OpenPOWER on IntegriCloud