diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1999-10-27 07:38:20 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1999-10-27 07:38:20 +0000 |
commit | f813f5a5d374b41239cd8a84dbf778b34dbc2ba3 (patch) | |
tree | e0f16a0bcf4a501b18d9941d4eb1db4d7e3020cb | |
parent | 998e8097b8aa63df941786d48754741b38ad9e9a (diff) |
Actually make ASYNC pipes generate SIGIO.
-rw-r--r-- | sys/kern/sys_pipe.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index 42060795d7c..a37550e7e80 100644 --- a/sys/kern/sys_pipe.c +++ b/sys/kern/sys_pipe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys_pipe.c,v 1.17 1999/07/15 14:07:41 art Exp $ */ +/* $OpenBSD: sys_pipe.c,v 1.18 1999/10/27 07:38:19 niklas Exp $ */ /* * Copyright (c) 1996 John S. Dyson @@ -342,6 +342,8 @@ pipeselwakeup(cpipe) cpipe->pipe_state &= ~PIPE_SEL; selwakeup(&cpipe->pipe_sel); } + if ((cpipe->pipe_state & PIPE_ASYNC) && cpipe->pipe_pgid != NO_PID) + gsignal(cpipe->pipe_pgid, SIGIO); } /* ARGSUSED */ |