mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-04 17:15:50 +00:00
5844994b1e
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