diff options
author | Darren Tucker <dtucker@dtucker.net> | 2021-08-20 10:48:13 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2021-08-20 10:48:13 +1000 |
commit | 9a2ed62173cc551b2b5f479460bb015b19499de8 (patch) | |
tree | 48c2e363078a2908e01a46e25eed80e5fae7b0d9 | |
parent | deaadcb93ca15d4f38aa38fb340156077792ce87 (diff) |
Also check pid in pselect_notify_setup.
Spotted by djm@.
-rw-r--r-- | openbsd-compat/bsd-pselect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd-compat/bsd-pselect.c b/openbsd-compat/bsd-pselect.c index 1d4140a5..fff1bf54 100644 --- a/openbsd-compat/bsd-pselect.c +++ b/openbsd-compat/bsd-pselect.c @@ -80,7 +80,7 @@ pselect_notify_setup(void) { static int initialized; - if (initialized) + if (initialized && notify_pid == getpid()) return; if (notify_pid == 0) debug3_f("initializing"); |