summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_syscalls.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2013-02-07 14:53:33 +0000
committerkib <kib@FreeBSD.org>2013-02-07 14:53:33 +0000
commit92d95b840647151da87b35dd403d68da90f88a98 (patch)
tree09027ddd99aff592b1f3d6e1f1596b8e2c3878d1 /sys/kern/vfs_syscalls.c
parent1afd4972b014971ca36bfe32d568b55a25bce377 (diff)
downloadFreeBSD-src-92d95b840647151da87b35dd403d68da90f88a98.zip
FreeBSD-src-92d95b840647151da87b35dd403d68da90f88a98.tar.gz
Stop translating the ERESTART error from the open(2) into EINTR.
Posix requires that open(2) is restartable for SA_RESTART. For non-posix objects, in particular, devfs nodes, still disable automatic restart of the opens. The open call to a driver could have significant side effects for the hardware. Noted and reviewed by: jilles Discussed with: bde MFC after: 2 weeks
Diffstat (limited to 'sys/kern/vfs_syscalls.c')
-rw-r--r--sys/kern/vfs_syscalls.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 1a5f2ae..dd1232c 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -1106,8 +1106,6 @@ kern_openat(struct thread *td, int fd, char *path, enum uio_seg pathseg,
goto success;
}
- if (error == ERESTART)
- error = EINTR;
goto bad;
}
td->td_dupfd = 0;
OpenPOWER on IntegriCloud