diff options
author | jilles <jilles@FreeBSD.org> | 2016-02-07 22:12:39 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2016-02-07 22:12:39 +0000 |
commit | b2791f185cba92ad0c81fd19ad5ab4d88fd2681c (patch) | |
tree | d1ff67b50654cbedfcbd100e9ccea7def00ef75f /lib/libc/stdlib/atof.c | |
parent | 6e7e5621d9b1fb2151c468d82074db9c0e91b6ee (diff) | |
download | FreeBSD-src-b2791f185cba92ad0c81fd19ad5ab4d88fd2681c.zip FreeBSD-src-b2791f185cba92ad0c81fd19ad5ab4d88fd2681c.tar.gz |
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/stdlib/atof.c')
0 files changed, 0 insertions, 0 deletions