Page MenuHomeFreeBSD

D27310.id79976.diff
No OneTemporary

D27310.id79976.diff

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

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)

Event Timeline