Jilles Tjoelker 5844994b1e 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
2012-04-09 14:17:22 +00:00
..
2012-03-26 19:23:57 +00:00
2012-03-28 19:20:28 +00:00
2012-04-07 09:26:21 +00:00
2012-03-06 03:30:09 +00:00
2012-03-29 20:23:35 +00:00
2012-03-29 16:20:20 +00:00
2011-07-10 06:57:00 +00:00
2012-01-03 07:14:01 +00:00