diff options
author | anton <anton@openbsd.org> | 2019-12-19 18:53:37 +0000 |
---|---|---|
committer | anton <anton@openbsd.org> | 2019-12-19 18:53:37 +0000 |
commit | 102465bdafa897fdfc0332b3b18b761bfecee674 (patch) | |
tree | 6587e90df408b672c917b9b572a182b9a4612aec /sys/sys/pipe.h | |
parent | In ndp(8) the scope ID was not set correctly so it touches the wrong (diff) | |
download | wireguard-openbsd-102465bdafa897fdfc0332b3b18b761bfecee674.tar.xz wireguard-openbsd-102465bdafa897fdfc0332b3b18b761bfecee674.zip |
Start protecting the pipe_peer member of `struct pipe' using the
pipe_lock. This add a potential sleeping point in the kqueue filter
routines which should be fine by now thanks to changes made to the
kqueue subsystem by visa.
ok visa@
Diffstat (limited to 'sys/sys/pipe.h')
-rw-r--r-- | sys/sys/pipe.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/pipe.h b/sys/sys/pipe.h index 1f7e3493a05..8f72dfc1f16 100644 --- a/sys/sys/pipe.h +++ b/sys/sys/pipe.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pipe.h,v 1.19 2019/11/29 15:15:10 anton Exp $ */ +/* $OpenBSD: pipe.h,v 1.20 2019/12/19 18:53:37 anton Exp $ */ /* * Copyright (c) 1996 John S. Dyson @@ -84,7 +84,7 @@ struct pipe { struct timespec pipe_mtime; /* [K] time of last modify */ struct timespec pipe_ctime; /* [I] time of status change */ struct sigio_ref pipe_sigio; /* [S] async I/O registration */ - struct pipe *pipe_peer; /* [K] link with other direction */ + struct pipe *pipe_peer; /* [P] link with other direction */ u_int pipe_state; /* [K] pipe status info */ int pipe_busy; /* [P] # readers/writers */ }; |