/[base]
ViewVC logotype

Revision 297747


Jump to revision: Previous Next
Author: jilles
Date: Sat Apr 9 13:32:42 2016 UTC (8 years, 2 months ago)
Changed paths: 3
Log Message:
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


Changed paths

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

  ViewVC Help
Powered by ViewVC 1.1.27