diff options
| author | Joerg Wunsch <joerg@FreeBSD.org> | 1999-03-02 19:08:09 +0000 |
|---|---|---|
| committer | Joerg Wunsch <joerg@FreeBSD.org> | 1999-03-02 19:08:09 +0000 |
| commit | d7a28702a3a8748d9b72416e9f14cca98db8af88 (patch) | |
| tree | d5f92b345aec8e87c07bf9630a1e36004d03f28c /usr.bin/window | |
| parent | 37cd370c97838f39e5ddc98ecffb0ad93009e41a (diff) | |
Notes
Diffstat (limited to 'usr.bin/window')
| -rw-r--r-- | usr.bin/window/wwinit.c | 1 | ||||
| -rw-r--r-- | usr.bin/window/wwspawn.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/window/wwinit.c b/usr.bin/window/wwinit.c index 074731984f13..b22eaf9bf325 100644 --- a/usr.bin/window/wwinit.c +++ b/usr.bin/window/wwinit.c @@ -314,6 +314,7 @@ wwinit() wwerrno = WWE_SYS; goto bad; } + fcntl(0,F_SETOWN,getpid()); /* catch typeahead before ASYNC was set */ (void) kill(getpid(), SIGIO); wwstart1(); diff --git a/usr.bin/window/wwspawn.c b/usr.bin/window/wwspawn.c index 3588dd88150c..57e2f666ef62 100644 --- a/usr.bin/window/wwspawn.c +++ b/usr.bin/window/wwspawn.c @@ -42,7 +42,7 @@ static char sccsid[] = "@(#)wwspawn.c 8.1 (Berkeley) 6/6/93"; #include <signal.h> /* - * There is a dead lock with fork and closing of pseudo-ports. + * There is a dead lock with vfork and closing of pseudo-ports. * So we have to be sneaky about error reporting. */ wwspawn(wp, file, argv) @@ -56,7 +56,7 @@ char **argv; int s; s = sigblock(sigmask(SIGCHLD)); - switch (pid = fork()) { + switch (pid = vfork()) { case -1: wwerrno = WWE_SYS; ret = -1; |
