On Thu, 2002-02-07 at 15:54, Kenneth Porter wrote:
> How hard is hard?
> 
> Does it send SIGTERM (to allow sane cleanup) and then fall back to
> SIGKILL?
Hard is pretty hard; from /usr/bin/killev:

sub kill_exe {
        my ($exe_name) = @_;
        my $lt_name = "lt-$exe_name";
        my $sub_exe_name = substr ($exe_name, 0, 16);
        my $sub_lt_name = substr ($lt_name, 0, 16);

        printf ("killing $exe_name\n");

        $redirect = "2> /dev/null";

        print "$killcmd -9 $exe_name\n" if ($debug);
        `$killcmd -9 $exe_name $redirect`;

        print "$killcmd -9 $lt_name\n" if ($debug);
        `$killcmd -9 $lt_name $redirect`;

        print "$killcmd -9 $sub_exe_name\n" if ($debug);
        `$killcmd -9 $sub_exe_name $redirect`;

        print "$killcmd -9 $sub_lt_name\n" if ($debug);
        `$killcmd -9 $sub_lt_name $redirect`;
}



_______________________________________________
evolution maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution

Reply via email to