/[base]
ViewVC logotype

Revision 295385


Jump to revision: Previous Next
Author: jilles
Date: Sun Feb 7 22:12:39 2016 UTC (8 years, 4 months ago)
Changed paths: 2
Log Message:
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


Changed paths

Path Details
Directoryhead/sys/kern/sysv_sem.c modified , text changed
Directoryhead/tools/regression/sysvsem/semtest.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27