Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git] / fs / binfmt_som.c
index 8f6da39..21a5717 100644 (file)
@@ -35,6 +35,8 @@
 #include <asm/uaccess.h>
 #include <asm/pgtable.h>
 
+#include <linux/config.h>
+
 #include <linux/elf.h>
 
 static int load_som_binary(struct linux_binprm * bprm, struct pt_regs * regs);
@@ -273,6 +275,8 @@ load_som_binary(struct linux_binprm * bprm, struct pt_regs * regs)
        map_hpux_gateway_page(current,current->mm);
 
        start_thread_som(regs, som_entry, bprm->p);
+       if (current->ptrace & PT_PTRACED)
+               send_sig(SIGTRAP, current, 0);
        return 0;
 
        /* error cleanup */