Discussion:
Semaphore names
(too old to reply)
James Reilly Andreassi
2005-10-03 22:56:30 UTC
Permalink
The spec says we must handle semaphore names up to 25 characters long.
If the given name is too long, do we truncate the name, or return an error?
Iulian Neamtiu
2005-10-04 00:04:51 UTC
Permalink
Return error. If you truncate it, the user program gets the wrong idea
that its request has gone thru (and assumes the semaphore has that
superlong name it has requested, which is misleading).

Iulian
Post by James Reilly Andreassi
The spec says we must handle semaphore names up to 25 characters long.
If the given name is too long, do we truncate the name, or return an error?
Continue reading on narkive:
Loading...