From: David van Moolenbroek Date: Sat, 12 Sep 2009 18:36:07 +0000 (+0000) Subject: PM: some tiny fixes X-Git-Tag: v3.1.5~149 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=ba83b7663dda28e3dce5b2d552e142f0378e1f0c;p=minix.git PM: some tiny fixes --- diff --git a/servers/pm/exec.c b/servers/pm/exec.c index 5d702bca1..3f9a0411d 100644 --- a/servers/pm/exec.c +++ b/servers/pm/exec.c @@ -54,7 +54,7 @@ PUBLIC int do_exec() mp->mp_fs_call= PM_EXEC; r= notify(FS_PROC_NR); if (r != OK) - panic(__FILE__, "do_getset: unable to notify FS", r); + panic(__FILE__, "do_exec: unable to notify FS", r); /* Do not reply */ return SUSPEND; diff --git a/servers/pm/forkexit.c b/servers/pm/forkexit.c index 5af2ac794..0cdc7c24d 100644 --- a/servers/pm/forkexit.c +++ b/servers/pm/forkexit.c @@ -159,6 +159,8 @@ PUBLIC int do_fork_nb() rmc->mp_flags &= (IN_USE|PRIV_PROC); rmc->mp_child_utime = 0; /* reset administration */ rmc->mp_child_stime = 0; /* reset administration */ + rmc->mp_exitstatus = 0; + rmc->mp_sigstatus = 0; rmc->mp_endpoint = child_ep; /* passed back by VM */ for (i = 0; i < NR_ITIMERS; i++) rmc->mp_interval[i] = 0; /* reset timer intervals */ diff --git a/servers/pm/misc.c b/servers/pm/misc.c index 365724532..fe92eed81 100644 --- a/servers/pm/misc.c +++ b/servers/pm/misc.c @@ -212,15 +212,12 @@ PUBLIC int do_getsysinfo() size_t len; int s, r; - /* This call leaks important information (the contents of registers). - * harmless data (such as the load should get their own calls) - */ + /* This call leaks important information (the contents of registers). */ if (mp->mp_effuid != 0) { printf("PM: unauthorized call of do_getsysinfo by proc %d '%s'\n", mp->mp_endpoint, mp->mp_name); sys_sysctl_stacktrace(mp->mp_endpoint); - sig_proc(mp, SIGEMT); return EPERM; }