Just try this.
Someone else posted some code that seemed to be "unkillable". Maybe this
is the same effect...
The toxic effect of SIGKILL depends on the dosis... ;-)
Greetings, Michael
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <signal.h>
int main(int argc, char ** argv)
{
if (argc !=3 ) {
fprintf(stderr, "Usage: %s <PID> <sig> gibt kill -sig Dauerfeuer\n",
argv[0]);
}
else {
int pid;
pid=strtol(argv[1], 0, 10);
int sig;
sig=strtol(argv[2], 0, 10);
printf("Sending signal %d to process %d:", sig, pid);
while (kill(pid, sig)==0) {
printf(".");
}
}
return 0;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:11 EST