On 20 Feb 2008, at 22:42, David Meisner wrote:
> The first kill is just a safe guard. After that I kill it because
> the script doesn't terminate by itself. This works, its just not
> pretty.
OK, I'm still missing something. The dtrace script terminates without
intervention, right?
Is there any reason why you can't just
system('dtrace -s pageTrace.d > traceOut.txt');
I'm not sure why you're forking.
If you /do/ need to fork the parent process should probably wait for
the child to terminate using waitpid() so that it gets to reap the
child correctly.
But more context would be good please :)
--
Andy Armstrong, Hexten
_______________________________________________
dtrace-discuss mailing list
[email protected]