Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148318466
D27310.id79976.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
546 B
Referenced Files
None
Subscribers
None
D27310.id79976.diff
View Options
Index: head/sys/kern/kern_descrip.c
===================================================================
--- head/sys/kern/kern_descrip.c
+++ head/sys/kern/kern_descrip.c
@@ -1279,6 +1279,15 @@
FILEDESC_XUNLOCK(fdp);
error = closef(fp, td);
+
+ /*
+ * All paths leading up to closefp() will have already removed or
+ * replaced the fd in the filedesc table, so a restart would not
+ * operate on the same file.
+ */
+ if (error == ERESTART)
+ error = EINTR;
+
if (holdleaders) {
FILEDESC_XLOCK(fdp);
fdp->fd_holdleaderscount--;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 18, 3:46 AM (17 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29876446
Default Alt Text
D27310.id79976.diff (546 B)
Attached To
Mode
D27310: kern: never restart syscalls calling closefp(), e.g. close(2)
Attached
Detach File
Event Timeline
Log In to Comment