You should still check your open command for failure. It could fail for a number of reasons that have nothing to do with your flock call. That said, flock isn't going to die if a file is locked, rather it waits forever to get one and it dies if the platform doesn't support it, therefore IMHO checking the return status of flock is really not nessecary at all. Someone please correct me if I'm wrong.
Lobster Aliens Are attacking the world!In reply to Re: use die with flock
by cfreak
in thread use die with flock
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |