Hello all,

Can anyone give an example of how to use IPC::Semaphore to cause a process
to "wait" until another process has finished.  I don't see a "lock" or
"unlock" call in there, and that's what I've always thought was the way to
do it.

Also, I see that IPC::Semaphore allows you to get the PID of the last
process who made a change, but is there any way to get the exit code/status
of that process?

The only flag I see in the examples is IPC_NOWAIT which sounds exactly like
the opposite of what I want to do!  : )

How do I make a process wait until the semaphore value drops to 0 or
conversely until it reaches a set value.  I see the calls to determine the
number of procs wait for that to happen, but no examples of how to queue up
those procs.  Oh, and please forgive my complete ignorance!!  : )

thanks!

Chuck

_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to 
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users

Reply via email to