in reply to Re^3: Process Management
in thread Process Management
My point is that there are actually three cases that need to be dealt with. Since fork almost never fails, people often forget the undef case and just handle true as parent and false as child.
I like handling them as three separate cases, because the parent may be able to recover.
In any case where the parent continues, handling the undef is important. Otherwise, you end up with a subtle, hard to reproduce bug.
|
|---|