diff options
author | 2009-10-30 18:03:34 +0000 | |
---|---|---|
committer | 2009-10-30 18:03:34 +0000 | |
commit | 7a59ed3d061632723a5e94792964df4e56a40961 (patch) | |
tree | 59e83851bd993c08b5b011bb5781324e5c7ca5f7 | |
parent | The script that generates keywords.h wasn't updated when (diff) | |
download | wireguard-openbsd-7a59ed3d061632723a5e94792964df4e56a40961.tar.xz wireguard-openbsd-7a59ed3d061632723a5e94792964df4e56a40961.zip |
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; } |