FreeBSD Bugzilla – Attachment 161136 Details for
Bug 203162
when close(fd) on a fifo fails with EINTR, the file descriptor is not really closed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
A bit more fairness into the signal interruption of fifo open
1.patch (text/plain), 695 bytes, created by
Konstantin Belousov
on 2015-09-17 01:10:59 UTC
(
hide
)
Description:
A bit more fairness into the signal interruption of fifo open
Filename:
MIME Type:
Creator:
Konstantin Belousov
Created:
2015-09-17 01:10:59 UTC
Size:
695 bytes
patch
obsolete
>diff --git a/sys/fs/fifofs/fifo_vnops.c b/sys/fs/fifofs/fifo_vnops.c >index e544bba..ab8460f 100644 >--- a/sys/fs/fifofs/fifo_vnops.c >+++ b/sys/fs/fifofs/fifo_vnops.c >@@ -194,7 +194,7 @@ fifo_open(ap) > if (stops_deferred) > sigdeferstop(); > vn_lock(vp, LK_EXCLUSIVE | LK_RETRY); >- if (error) { >+ if (error != 0 && fip->fi_writers == 0) { > fip->fi_readers--; > if (fip->fi_readers == 0) { > PIPE_LOCK(fpipe); >@@ -221,7 +221,7 @@ fifo_open(ap) > if (stops_deferred) > sigdeferstop(); > vn_lock(vp, LK_EXCLUSIVE | LK_RETRY); >- if (error) { >+ if (error != 0 && fip->fi_readers == 0) { > fip->fi_writers--; > if (fip->fi_writers == 0) { > PIPE_LOCK(fpipe);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 203162
:
161126
|
161127
|
161136
|
161150
|
161179