1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-25 01:34:38 +03:00

Make the thread handling a little less cavalier. In particular, calling

pthread_exit in a signal handler was a /really/ bad idea.
This commit is contained in:
Patrick Caulfield 2004-09-23 12:51:56 +00:00
parent 130b892d34
commit 953f4838dd

View File

@ -1292,7 +1292,8 @@ static void *pre_and_post_thread(void *arg)
DEBUGLOG("Got pre command condition...\n");
}
DEBUGLOG("Subthread finished\n");
return (void *) 0;
pthread_exit((void *) 0);
return 0;
}
/* Process a command on the local node and store the result */
@ -1681,7 +1682,6 @@ static void ntoh_clvm(struct clvm_header *hdr)
static void sigusr2_handler(int sig)
{
DEBUGLOG("SIGUSR2 received\n");
pthread_exit((void *) -1);
return;
}