diff options
author | 2017-03-07 19:08:07 +0000 | |
---|---|---|
committer | 2017-03-07 19:08:07 +0000 | |
commit | df1c03b73b1070079c509ffc20d647de4c05b042 (patch) | |
tree | eb862f55b3c80695d132e51e8c1cbb89c9ca4dc1 /lib/libc | |
parent | somehow it didn't get removed even though it's no longer installed (diff) | |
download | wireguard-openbsd-df1c03b73b1070079c509ffc20d647de4c05b042.tar.xz wireguard-openbsd-df1c03b73b1070079c509ffc20d647de4c05b042.zip |
If tcsetpgrp() is called by a background process and there is a
SIGTTOU handler installed without SA_RESTART set, tcsetpgrp() will
return -1 and set errno to EINTR. OK deraadt@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/termios/tcsetpgrp.3 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/termios/tcsetpgrp.3 b/lib/libc/termios/tcsetpgrp.3 index db5e45c014a..a5b8dbeae46 100644 --- a/lib/libc/termios/tcsetpgrp.3 +++ b/lib/libc/termios/tcsetpgrp.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tcsetpgrp.3,v 1.13 2016/07/10 00:48:21 millert Exp $ +.\" $OpenBSD: tcsetpgrp.3,v 1.14 2017/03/07 19:08:07 millert Exp $ .\" .\" Copyright (c) 1991 The Regents of the University of California. .\" All rights reserved. @@ -27,7 +27,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: July 10 2016 $ +.Dd $Mdocdate: March 7 2017 $ .Dt TCSETPGRP 3 .Os .Sh NAME @@ -77,6 +77,10 @@ is set to indicate the error, as follows: The .Fa fd argument is not a valid file descriptor. +.It Bq Er EINTR +The +.Fn tcsetpgrp +function was interrupted by a signal. .It Bq Er EINVAL An invalid value of .Fa pgrp_id |