Currently I am using
$pid = getmypid();
exec("kill $pid");
exec("TSKILL $pid");
Is there a better, generic way?
Edit: exit
runs destructors and shutdown functions. As the title suggests, I am testing and want to terminate immediately.
Currently I am using
$pid = getmypid();
exec("kill $pid");
exec("TSKILL $pid");
Is there a better, generic way?
Edit: exit
runs destructors and shutdown functions. As the title suggests, I am testing and want to terminate immediately.