APM: Spawning processes

Brian Michalk michalk at awpi.com
Tue Jul 20 15:36:02 CDT 2004

I have come across a scenario where the shell environment changes.  When
this happens, I could clean up all of my network sockets, and restore
everything, but it would be much simpler to just restart.

What would the preferred method be?  The respawned process needs to detach,
because we will be killing the parent.

Something like:
System "run_my_program.pl &";
Exit 0;

Maybe a fork()?????

More information about the Austin mailing list