/[base]
ViewVC logotype

Revision 265847


Jump to revision: Previous Next
Author: kib
Date: Sat May 10 19:08:07 2014 UTC (10 years, 1 month ago)
Changed paths: 1
Log Message:
Invalidate the cache for the named posix semaphore when opened and
actual file storing the semaphore object is different from the file
created on the first open.  Store the file st_dev and st_ino members
of the struct stat in the semaphore structure on open, and compare
them with the attributes of the opened file to detect unlink and
re-creation.

This fixes an issue of sem_unlink(3) failing to flush the named entry
in the semaphore list for the current or remote process, making
sem_unlink(3) not correctly operating if the unlinked semaphore is
still opened.

Reported by:	Joris Giovannangeli <joris@giovannangeli.fr>
PR:	standards/189353
Reviewed by:	jilles (previous version)
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week


Changed paths

Path Details
Directoryhead/lib/libc/gen/sem_new.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27