diff options
author | 2019-07-18 13:45:03 +0000 | |
---|---|---|
committer | 2019-07-18 13:45:03 +0000 | |
commit | 3a0137a5c5973015d107ca3ccc8299b2d2edc1ce (patch) | |
tree | 97baae05169efc697ddc21221d15fe5daba347f9 | |
parent | add STANDARDS, improve HISTORY, and basic macro cleanup: (diff) | |
download | wireguard-openbsd-3a0137a5c5973015d107ca3ccc8299b2d2edc1ce.tar.xz wireguard-openbsd-3a0137a5c5973015d107ca3ccc8299b2d2edc1ce.zip |
obvious bugfix: if the queue is removed while message transmission is
blocked, POSIX requires EIDRM rather than EINVAL, and that's what our
implementation does and what the ERRORS section already says, too
-rw-r--r-- | lib/libc/sys/msgrcv.2 | 4 | ||||
-rw-r--r-- | lib/libc/sys/msgsnd.2 | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/sys/msgrcv.2 b/lib/libc/sys/msgrcv.2 index d49ed306be2..3474f967604 100644 --- a/lib/libc/sys/msgrcv.2 +++ b/lib/libc/sys/msgrcv.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: msgrcv.2,v 1.17 2019/07/18 13:32:40 schwarze Exp $ +.\" $OpenBSD: msgrcv.2,v 1.18 2019/07/18 13:45:03 schwarze Exp $ .\" $NetBSD: msgrcv.2,v 1.2 1997/03/27 08:20:37 mikel Exp $ .\" .\" Copyright (c) 1995 Frank van der Linden @@ -120,7 +120,7 @@ A message of the requested type becomes available on the message queue. The message queue is removed, in which case \-1 will be returned, and .Va errno set to -.Er EINVAL . +.Er EIDRM . .It A signal is received and caught. \-1 is returned, and diff --git a/lib/libc/sys/msgsnd.2 b/lib/libc/sys/msgsnd.2 index 3b676f4ede9..54d710ab666 100644 --- a/lib/libc/sys/msgsnd.2 +++ b/lib/libc/sys/msgsnd.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: msgsnd.2,v 1.20 2019/07/18 12:57:12 schwarze Exp $ +.\" $OpenBSD: msgsnd.2,v 1.21 2019/07/18 13:45:03 schwarze Exp $ .\" $NetBSD: msgsnd.2,v 1.2 1997/03/27 08:20:36 mikel Exp $ .\" .\" Copyright (c) 1995 Frank van der Linden @@ -92,7 +92,7 @@ The message will be sent. The message queue is removed, in which case \-1 will be returned, and .Va errno is set to -.Er EINVAL . +.Er EIDRM . .It The caller catches a signal. The call returns with |