Try this, let me know what happens.

Index: linux_exec.c
===================================================================
RCS file: /cvs/src/sys/compat/linux/linux_exec.c,v
retrieving revision 1.33
diff -u -p -r1.33 linux_exec.c
--- linux_exec.c        5 Apr 2011 15:44:40 -0000       1.33
+++ linux_exec.c        18 Apr 2011 13:50:37 -0000
@@ -197,14 +197,17 @@ linux_e_proc_exit(struct proc *p)
 void
 linux_e_proc_fork(struct proc *p, struct proc *parent)
 {
-       struct linux_emuldata *emul = p->p_emuldata;
-       struct linux_emuldata *p_emul = parent->p_emuldata;
+       struct linux_emuldata *emul;
+       struct linux_emuldata *p_emul;
 
        /* Allocate new emuldata for the new process. */
        p->p_emuldata = NULL;
 
        /* fork, use parent's vmspace (our vmspace may not be setup yet) */
        linux_e_proc_init(p, parent->p_vmspace);
+
+       emul = p->p_emuldata;
+       p_emul = parent->p_emuldata;
 
        emul->my_set_tid = p_emul->child_set_tid;
        emul->my_clear_tid = p_emul->child_clear_tid;

Reply via email to