Commit Graph

13 Commits

Author SHA1 Message Date
David E. O'Brien
2f8b721157 Fix the rcsid's. 2001-05-17 09:38:49 +00:00
David E. O'Brien
9e1ade7750 While I'm here and got caught by it, add FreeBSD IDs so the next guy
won't have trouble committing his bits.
2000-10-26 10:07:20 +00:00
Joerg Wunsch
0f9ae8e234 Fix the style of my previous commit.
Submitted by:	The Style Police[tm]
1999-03-03 14:02:50 +00:00
Joerg Wunsch
d7a28702a3 Make window(1) actually work again. It has been broken for quite some
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>
1999-03-02 19:08:09 +00:00
Doug Rabson
f1598784ae Use <signal.h> instead of <sys/signal.h>. 1998-08-05 09:01:29 +00:00
Joerg Wunsch
dc6393aa53 Make window(1) honor the LC_CTYPE setting.
While i was at it, don't export \E[OA style cursor key strings into the
TERMCAP variable since window's emulation doesn't support it.  Instead,
convert to \E[[A etc.
1997-11-05 20:20:17 +00:00
Andrey A. Chernov
8992794b01 Remove _set_ospeed, it is done in tgetent 1995-08-05 22:04:23 +00:00
Andrey A. Chernov
3c0ba277d4 Allow it works with non-fixed termios speeds.
Replace ospeed switch with new _set_ospeed
1995-08-04 06:54:18 +00:00
Bruce Evans
e9a82e8087 Give up instead of looping endlessly for unknown speeds. 1994-10-30 21:01:04 +00:00
Andrey A. Chernov
49a7037f5a Make window 8bit clean and ctype oriented.
Fix restart after ^Z hang.
1994-10-30 03:09:58 +00:00
Andrey A. Chernov
434ded340d Fix hang on exit: needs to restore SIGIO reaction _before_
tcsetattr, because tcsetattr cause SIGIO in wakeup
1994-10-30 01:43:09 +00:00
Andrey A. Chernov
f7da7bc717 Remove VMIN_BUG from CFLAGS, add 57600, 115200 1994-10-27 22:52:14 +00:00
Rodney W. Grimes
9b50d90275 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00