diff options
author | jilles <jilles@FreeBSD.org> | 2016-04-09 13:32:42 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2016-04-09 13:32:42 +0000 |
commit | 15cca94824de0fbecb8dc3951d0a7e27f5a0ec67 (patch) | |
tree | bf032f976c283c35de30d920650828c88cf09e0e /lib/libc/stdio/putwc.c | |
parent | 336b1f7bb670aa4ebb365bab9cfc602548954333 (diff) | |
download | FreeBSD-src-15cca94824de0fbecb8dc3951d0a7e27f5a0ec67.zip FreeBSD-src-15cca94824de0fbecb8dc3951d0a7e27f5a0ec67.tar.gz |
MFC r295385: semget(): Check for [EEXIST] error first.
Although POSIX literally permits failing with [EINVAL] if IPC_CREAT and
IPC_EXCL were both passed, the semaphore set already exists and has fewer
semaphores than nsems, this does not allow an application to retry safely:
if the [EINVAL] is actually because of the semmsl limit, an infinite loop
would result.
PR: 206927
Diffstat (limited to 'lib/libc/stdio/putwc.c')
0 files changed, 0 insertions, 0 deletions