]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/kern/kern_exit.c
xnu-1228.5.20.tar.gz
[apple/xnu.git] / bsd / kern / kern_exit.c
index 7bc8b1d74c19a74a3baff3416e175cd25c734d39..27f98defbaf6af68a9d6e0c667af0f4ba0ab235c 100644 (file)
@@ -246,8 +246,7 @@ exit1(proc_t p, int rv, int *retval)
                }
                sig_lock_to_exit(p);
        }
-#if !CONFIG_EMBEDDED /* BER_XXX */
-       if (p->p_pid == 1) {
+       if (p == initproc) {
                proc_unlock(p);
                printf("pid 1 exited (signal %d, exit %d)",
                    WTERMSIG(rv), WEXITSTATUS(rv));
@@ -257,7 +256,6 @@ exit1(proc_t p, int rv, int *retval)
                                                                "launchd"),
                                                        init_task_failure_data);
        }
-#endif
 
        p->p_lflag |= P_LEXIT;
        p->p_xstat = rv;