* gdb.threads/killed.exp, gdb.threads/killed.c: New test.

This commit is contained in:
Jim Blandy
2002-09-03 20:02:48 +00:00
parent e26fb1d7e5
commit 38fc42c80d
3 changed files with 125 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#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);
}