diff options
author | Ulrich Drepper <drepper@gmail.com> | 2011-05-12 04:58:02 +0100 |
---|---|---|
committer | Petr Baudis <pasky@ucw.cz> | 2011-05-27 01:25:07 +0200 |
commit | 9bb6bfdf659cd1a04c5d93282535b8a9e320fc7d (patch) | |
tree | 93d5a5063175dcb2de11c240670be86fc4e5a4ed | |
parent | 18852b24dcd132d2aaa3488638ab18c15833730f (diff) | |
download | glibc-9bb6bfdf659cd1a04c5d93282535b8a9e320fc7d.zip glibc-9bb6bfdf659cd1a04c5d93282535b8a9e320fc7d.tar.gz glibc-9bb6bfdf659cd1a04c5d93282535b8a9e320fc7d.tar.bz2 |
Fix sched_setscheduler call in spawn implementation
(cherry picked from commit f574184a0e4b6ed69a5d9a3234543fba6d2a7367)
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | sysdeps/posix/spawni.c | 4 |
2 files changed, 4 insertions, 3 deletions
@@ -1,5 +1,8 @@ 2011-05-11 Ulrich Drepper <drepper@gmail.com> + [BZ #12052] + * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call. + [BZ #12625] * misc/mntent_r.c (addmntent): Flush the stream after the output diff --git a/sysdeps/posix/spawni.c b/sysdeps/posix/spawni.c index 29803a8..1c50f8e 100644 --- a/sysdeps/posix/spawni.c +++ b/sysdeps/posix/spawni.c @@ -142,9 +142,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 |