diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-10-30 18:03:35 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-10-30 18:03:35 +0000 |
commit | 1d4e7e7880e37aca01dc2032184cf8ab80944efd (patch) | |
tree | 4fdf6d6878188b4c1f1a46c745bb150b2feca0f5 | |
parent | 445ed330098e3b6702f4ce2a681e22cecc30b1a2 (diff) |
pipeclose() calls pileseltimeout() which does the KNOTE(); therefore calling
KNOTE() a second time is not needed (and perhaps bad)
ok claudio millert
-rw-r--r-- | sys/kern/sys_pipe.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index b704e181f58..3ca2f34e885 100644 --- a/sys/kern/sys_pipe.c +++ b/sys/kern/sys_pipe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys_pipe.c,v 1.55 2009/01/29 22:08:45 guenther Exp $ */ +/* $OpenBSD: sys_pipe.c,v 1.56 2009/10/30 18:03:34 deraadt Exp $ */ /* * Copyright (c) 1996 John S. Dyson @@ -750,7 +750,6 @@ pipeclose(struct pipe *cpipe) ppipe->pipe_state |= PIPE_EOF; wakeup(ppipe); - KNOTE(&ppipe->pipe_sel.si_note, 0); ppipe->pipe_peer = NULL; } |