URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [gdb-5.3/] [gdb/] [testsuite/] [gdb.threads/] [killed.c] - Rev 1181
Go to most recent revision | Compare with Previous | Blame | View Log
#include <sys/types.h> #include <signal.h> #include <pthread.h> #include <stdio.h> int pid; void * child_func (void *dummy) { kill (pid, SIGKILL); exit (1); } int main () { pthread_t child; pid = getpid (); pthread_create (&child, 0, child_func, 0); for (;;) sleep (10000); }
Go to most recent revision | Compare with Previous | Blame | View Log