mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-23 21:35:29 +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:
parent
130b892d34
commit
953f4838dd
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user