summaryrefslogtreecommitdiff
path: root/regress/usr.bin/make/mk8
diff options
context:
space:
mode:
authorSebastien Marie <semarie@cvs.openbsd.org>2019-07-13 06:52:00 +0000
committerSebastien Marie <semarie@cvs.openbsd.org>2019-07-13 06:52:00 +0000
commitb28d1d4917efbd28b9c45b7726a545ddc6df8908 (patch)
treecbe911d4499d2da03c438768e8c1dcd8f62fbba1 /regress/usr.bin/make/mk8
parentd2b8b80d8d1513228cf6dbf8120b40f84781da69 (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 'regress/usr.bin/make/mk8')
0 files changed, 0 insertions, 0 deletions