. Added printing of ppid to PM dump output

. made PM pid 0, own parent (so ppid 0) instead of -1
This commit is contained in:
Ben Gras
2005-07-04 09:36:16 +00:00
parent af9465adbd
commit 08f67dcef7
3 changed files with 5 additions and 6 deletions

View File

@@ -17,7 +17,6 @@
*/
#define PM_PID 0 /* PM's process id number */
#define PM_PARENT -1 /* PM's parent process slot */
#define INIT_PID 1 /* INIT's process id number */

View File

@@ -216,7 +216,7 @@ PRIVATE void pm_init()
sigemptyset(&mproc[INIT_PROC_NR].mp_sigmask);
mproc[PM_PROC_NR].mp_pid = PM_PID;
mproc[PM_PROC_NR].mp_parent = PM_PARENT;
mproc[PM_PROC_NR].mp_parent = PM_PROC_NR;
sigfillset(&mproc[PM_PROC_NR].mp_ignore);
sigfillset(&mproc[PM_PROC_NR].mp_sigmask);