summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2012-04-09 14:17:22 +0000
committerjilles <jilles@FreeBSD.org>2012-04-09 14:17:22 +0000
commit7a3a1c55f2cf22cb72b26de09a4217c9a604abeb (patch)
tree64551716fb7a6bce2b9ba7e98c369e1676bd45fb /lib/libc/stdlib
parentee116ad85c6fac2cea158c7afcccf60835267977 (diff)
downloadFreeBSD-src-7a3a1c55f2cf22cb72b26de09a4217c9a604abeb.zip
FreeBSD-src-7a3a1c55f2cf22cb72b26de09a4217c9a604abeb.tar.gz
sem_open: Make sure to fail an O_CREAT|O_EXCL open, even if that semaphore
is already open in this process. If the named semaphore is already open, sem_open() only increments a reference count and did not take the flags into account (which otherwise happens by passing them to open()). Add an extra check for O_CREAT|O_EXCL. PR: kern/166706 Reviewed by: davidxu MFC after: 10 days
Diffstat (limited to 'lib/libc/stdlib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud