multipathd: Change four threads from detached into joinable
PATCH 1/1 multipathd: Change four threads from detached into joinable
Change the CLI listener, checker loop, uevent dispatcher and uevent listener threads from detached into joinable threads. This change is needed because calling pthread_join() is only allowed for joinable threads.
Signed-off-by Bart Van Assche <[email protected]>
Acked-by [email protected]
--- multipathd/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
multipathd/main.c +2 -2
@@ -2216,8 +2216,8 @@ child (void * param)signal_init ();rcu_init (); -setup_thread_attr (&misc_attr,64 *1024 ,1 ); -setup_thread_attr (&uevent_attr,DEFAULT_UEVENT_STACKSIZE *1024 ,1 ); +setup_thread_attr (&misc_attr,64 *1024 ,0 ); +setup_thread_attr (&uevent_attr,DEFAULT_UEVENT_STACKSIZE *1024 ,0 );setup_thread_attr (&waiter_attr,32 *1024 ,1 );if (logsink ==1 ) {
Signature · 1 line
2.9.2
Merged.
Thanks.
Quoted 32 lines · Bart Van Assche
Change the CLI listener, checker loop, uevent dispatcher and uevent listener threads from detached into joinable threads. This change is needed because calling
pthread_join()is only allowed for joinable threads.Signed-off-by Bart Van Assche <[email protected]>Acked-by [email protected]--- multipathd/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)multipathd/main.c +2
-2@@ -2216,8 +2216,8 @@ child (void * param)signal_init ();rcu_init (); -setup_thread_attr (&misc_attr,64 *1024 ,1 ); -setup_thread_attr (&uevent_attr,DEFAULT_UEVENT_STACKSIZE *1024 , 1); +setup_thread_attr (&misc_attr,64 *1024 ,0 ); +setup_thread_attr (&uevent_attr,DEFAULT_UEVENT_STACKSIZE *1024 ,0 );setup_thread_attr (&waiter_attr,32 *1024 ,1 );if (logsink == 1) {--
2.9.2