diff options
author | kib <kib@FreeBSD.org> | 2013-02-07 15:11:43 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2013-02-07 15:11:43 +0000 |
commit | 305acfc1e8b3cbdb6e01a52a8fcf8ae561eae70d (patch) | |
tree | 2693b7bb5bc945454a9fca5e6c14bf6befcfa4c8 /lib/libc/sys | |
parent | 92d95b840647151da87b35dd403d68da90f88a98 (diff) | |
download | FreeBSD-src-305acfc1e8b3cbdb6e01a52a8fcf8ae561eae70d.zip FreeBSD-src-305acfc1e8b3cbdb6e01a52a8fcf8ae561eae70d.tar.gz |
Document the ERESTART translation to EINTR for devfs nodes.
Based on the submission by: jilles
MFC after: 2 weeks
Diffstat (limited to 'lib/libc/sys')
-rw-r--r-- | lib/libc/sys/open.2 | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2 index 041f9dc..41a6c64 100644 --- a/lib/libc/sys/open.2 +++ b/lib/libc/sys/open.2 @@ -28,7 +28,7 @@ .\" @(#)open.2 8.2 (Berkeley) 11/16/93 .\" $FreeBSD$ .\" -.Dd March 25, 2011 +.Dd February 7, 2013 .Dt OPEN 2 .Os .Sh NAME @@ -244,6 +244,17 @@ It returns \-1 on failure. The file pointer used to mark the current position within the file is set to the beginning of the file. .Pp +If a sleeping open of a device node from +.Xr devfs 5 +is interrupted by a signal, the call always fails with +.Er EINTR , +even if the +.Dv SA_RESTART +flag is set for the signal. +A sleeping open of a fifo (see +.Xr mkfifo 2 ) +is restarted as normal. +.Pp When a new file is created it is given the group of the directory which contains it. .Pp |