/* This testcase is part of GDB, the GNU debugger.
- Copyright 2010 Free Software Foundation, Inc.
+ Copyright 2010-2013 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
static void *
start (void *arg)
{
- signal (SIGUSR1, handler);
tgkill (getpid (), gettid (), SIGUSR1);
assert (0);
-
return NULL;
}
{
pthread_t thread;
+ signal (SIGUSR1, handler);
+
pthread_create (&thread, NULL, start, NULL);
start (NULL); /* main-start */
return 0;