diff options
author | Sebastien Marie <semarie@cvs.openbsd.org> | 2019-07-13 06:52:00 +0000 |
---|---|---|
committer | Sebastien Marie <semarie@cvs.openbsd.org> | 2019-07-13 06:52:00 +0000 |
commit | b28d1d4917efbd28b9c45b7726a545ddc6df8908 (patch) | |
tree | cbe911d4499d2da03c438768e8c1dcd8f62fbba1 /sys/kern/sysv_shm.c | |
parent | d2b8b80d8d1513228cf6dbf8120b40f84781da69 (diff) |
pipe_write() do opportunistic buffer resizing, when the buffer is empty.
but there is a possible sleeping point between the check (cnt == 0) and
the resize (pipespace() call), resulting resizing on possibly not empty
buffer.
fix it by rechecking the buffer usage once the exclusive lock is hold.
it should be revisited later as part of larger work on pipe(2).
ok visa@ anton@
Diffstat (limited to 'sys/kern/sysv_shm.c')
0 files changed, 0 insertions, 0 deletions