saintmike has asked for the wisdom of the Perl Monks concerning the following question:

Has anybody ever seen a case where IPC::Semaphore's remove() method fails occasionally on a semaphore created via IPC::Semaphore's new() constructor under the same user id?

It's been reported that the lingering semaphore can then only be hunted down and removed by using the ipcrm command line utility -- any ideas?

Replies are listed 'Best First'.
Re: IPC::Sempahore::remove vs. ipcrm
by steves (Curate) on Nov 10, 2004 at 23:59 UTC

    I'd get more info. to start: What OS? And I'd print $! on failure. The underlying semaphore system call should be setting errno on failure and that should be reflected in $!.