X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fbinfmt_flat.c;h=441a35f452728b6957dee67d60f464393b715106;hb=567f20a20be06ad546b5962340c4be268462055b;hp=7cd68c6d3a2f0db0f21cd18b94aa4438f6ca3502;hpb=653a9213ae6f303790975dd836d95778aab070de;p=linux-2.6.git diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c index 7cd68c6d3..441a35f45 100644 --- a/fs/binfmt_flat.c +++ b/fs/binfmt_flat.c @@ -899,6 +899,9 @@ static int load_flat_binary(struct linux_binprm * bprm, struct pt_regs * regs) start_thread(regs, start_addr, current->mm->start_stack); + if (current->ptrace & PT_PTRACED) + send_sig(SIGTRAP, current, 0); + return 0; }