X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fbinfmt_elf.c;h=655ed8d30a86ef7e963414a9cb56d6ed7dc5d3c4;hb=1a1dc50442ef1a3e5ef938a8541466ac38d163a9;hp=3b6ff854d98379b9af3dca3ea6889e79879575e7;hpb=29ca069cc6572cce62e42a27efdab01f50190616;p=linux-2.6 diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 3b6ff854d9..655ed8d30a 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -1003,12 +1003,6 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs) #endif start_thread(regs, elf_entry, bprm->p); - if (unlikely(current->ptrace & PT_PTRACED)) { - if (current->ptrace & PT_TRACE_EXEC) - ptrace_notify ((PTRACE_EVENT_EXEC << 8) | SIGTRAP); - else - send_sig(SIGTRAP, current, 0); - } retval = 0; out: kfree(loc);