in reply to Re^4: how to log a process
in thread how to log a process

I would put a check on status of the unlink. But failure is like one in a million for something like this.

It sounds like you are happy.
I am happy about that!

Replies are listed 'Best First'.
Re^6: how to log a process
by zimbot (Initiate) on Jun 01, 2009 at 13:12 UTC
    curious -- what do you mean by " I would put a check on status of the unlink. " ? thanks
      File ops like open(), unlink(), etc return status of whether it worked or not. You've seen open(...) or die"...."; same sort of thing for unlink() if you want to make sure that it succeeded. Maybe you've got a wrong path name in the unlink() or file is a directory or some other such thing that would cause the unlink to fail. Of course you can do other things that "die", depends upon your application.