From ee2253ec52cb825adc2f75dcfeaa03e908d281b3 Mon Sep 17 00:00:00 2001 From: Philip Homburg Date: Fri, 27 Jan 2006 13:20:06 +0000 Subject: [PATCH] Use the sys_privctl library function. --- servers/rs/manager.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);