From: Philip Homburg Date: Fri, 27 Jan 2006 13:20:06 +0000 (+0000) Subject: Use the sys_privctl library function. X-Git-Tag: v3.1.2a~408 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/migration-4to9?a=commitdiff_plain;h=ee2253ec52cb825adc2f75dcfeaa03e908d281b3;p=minix.git Use the sys_privctl library function. --- diff --git a/servers/rs/manager.c b/servers/rs/manager.c index 1ad9ae1b5..0a6349c52 100644 --- a/servers/rs/manager.c +++ b/servers/rs/manager.c @@ -372,8 +372,7 @@ struct rproc *rp; * Now, set the privilege structure for the child process to let is run. * This should succeed: we tested number in use above. */ - m.PR_PROC_NR = child_proc_nr; - if ((s = _taskcall(SYSTEM, SYS_PRIVCTL, &m)) < 0) { /* set privileges */ + if ((s = sys_privctl(child_proc_nr, SYS_PRIV_INIT, 0, NULL)) < 0) { report("RS","call to SYSTEM failed", s); /* to let child run */ if(child_pid > 0) kill(child_pid, SIGKILL); /* kill driver */ else report("RS", "didn't kill pid", child_pid);