in reply to RE: Launch and forget
in thread Launch and forget
If your Tk program runs for a long time, you should "double fork" to make IE the grandkid, and then wait for the kid, or else invoke waitpid from time to time to ensure that the kid process gets reaped occasionally.{ defined(my $kid = fork) or die "Cannot fork kid: $!"; unless ($kid) { exec "/path/to/ie", "param1", "param2" or die "Cannot exec ie: $!" +; } }
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: RE: Launch and forget
by the_slycer (Chaplain) on Sep 02, 2000 at 18:24 UTC |