On Wed, Oct 15, 2008 at 02:01, Simon Wistow <[EMAIL PROTECTED]> wrote: > Child: > > my ($msg, $sem_id) = get_message(); > my $sem = IPC::Semaphore->new($sem_id); > if (0 == $sem->op(0, -1, IPC_NOWAIT)) { > do_something($message); > } > > # If we're the last then clean up > if (EAGAIN == $sem->op(1,-1, IPC_NOWAIT)) { > $sem->remove; > }
Does the module really export no constants for this "0, 1, -1" stuff? It all seems rather error-prone to me. Cheers, -- Philip Newton <[EMAIL PROTECTED]>