about summary refs log tree commit diff
path: root/sysdeps/posix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-05-11 23:58:02 -0400
committerUlrich Drepper <drepper@gmail.com>2011-05-11 23:58:02 -0400
commitf574184a0e4b6ed69a5d9a3234543fba6d2a7367 (patch)
treec8a8e49f88f1ef1547aeac30e34beb97bb695d04 /sysdeps/posix
parent162ba701c2d305ae2fda1e901c85c9004d52b208 (diff)
downloadglibc-f574184a0e4b6ed69a5d9a3234543fba6d2a7367.tar.gz
glibc-f574184a0e4b6ed69a5d9a3234543fba6d2a7367.tar.xz
glibc-f574184a0e4b6ed69a5d9a3234543fba6d2a7367.zip
Fix sched_setscheduler call in spawn implementation
Diffstat (limited to 'sysdeps/posix')
-rw-r--r--sysdeps/posix/spawni.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sysdeps/posix/spawni.c b/sysdeps/posix/spawni.c
index c5a827d6d7..f19862ffff 100644
--- a/sysdeps/posix/spawni.c
+++ b/sysdeps/posix/spawni.c
@@ -143,9 +143,7 @@ __spawni (pid_t *pid, const char *file,
     }
   else if ((flags & POSIX_SPAWN_SETSCHEDULER) != 0)
     {
-      if (__sched_setscheduler (0, attrp->__policy,
-				(flags & POSIX_SPAWN_SETSCHEDPARAM) != 0
-				? &attrp->__sp : NULL) == -1)
+      if (__sched_setscheduler (0, attrp->__policy, &attrp->__sp) == -1)
 	_exit (SPAWN_ERROR);
     }
 #endif