APM: Spawning processes

Ian Ragsdale ian at SKYLIST.net
Tue Jul 20 15:42:20 CDT 2004


I think just calling "exec($0, @ARGV);" will do what you want.

Ian

On Jul 20, 2004, at 3:36 PM, Brian Michalk wrote:

> 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()?????
>
> _______________________________________________
> Austin mailing list
> Austin at mail.pm.org
> http://mail.pm.org/mailman/listinfo/austin




More information about the Austin mailing list