X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fexec.c;h=073b0b8c6d055a3fd947f16fbdbe5552a6bc34c8;hb=335fb8fc71692830aca0a5a5fe7f60016ee0d0aa;hp=ce62f7b65f17aa3963c67c8ff095974489b4f033;hpb=605a494e4df0b2dabdebcdfee99536b0f6a22adc;p=linux-2.6 diff --git a/fs/exec.c b/fs/exec.c index ce62f7b65f..073b0b8c6d 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -50,7 +50,6 @@ #include #include #include -#include #include #include @@ -779,19 +778,11 @@ static int de_thread(struct task_struct *tsk) struct task_struct *leader = NULL; int count; - /* - * Tell all the sighand listeners that this sighand has - * been detached. The signalfd_detach() function grabs the - * sighand lock, if signal listeners are present on the sighand. - */ - signalfd_detach(tsk); - /* * If we don't share sighandlers, then we aren't sharing anything * and we can just re-use it all. */ if (atomic_read(&oldsighand->count) <= 1) { - BUG_ON(atomic_read(&sig->count) != 1); exit_itimers(sig); return 0; } @@ -934,8 +925,6 @@ no_thread_group: if (leader) release_task(leader); - BUG_ON(atomic_read(&sig->count) != 1); - if (atomic_read(&oldsighand->count) == 1) { /* * Now that we nuked the rest of the thread group,