Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix sched_setscheduler call in spawn implementation
  • Loading branch information
Ulrich Drepper committed May 12, 2011
1 parent 162ba70 commit f574184
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
@@ -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

Expand Down
8 changes: 4 additions & 4 deletions NEWS
Expand Up @@ -10,10 +10,10 @@ Version 2.14
* The following bugs are resolved with this release:

386, 11257, 11258, 11487, 11532, 11578, 11653, 11668, 11724, 11945, 11947,
12158, 12178, 12200, 12346, 12393, 12420, 12445, 12449, 12454, 12460,
12469, 12489, 12509, 12510, 12518, 12527, 12541, 12545, 12551, 12583,
12587, 12597, 12611, 12625, 12631, 12650, 12653, 12655, 12660, 12681,
12685, 12711, 12713, 12714, 12717, 12723, 12734, 12738
12052, 12158, 12178, 12200, 12346, 12393, 12420, 12445, 12449, 12454,
12460, 12469, 12489, 12509, 12510, 12518, 12527, 12541, 12545, 12551,
12583, 12587, 12597, 12611, 12625, 12631, 12650, 12653, 12655, 12660,
12681, 12685, 12711, 12713, 12714, 12717, 12723, 12734, 12738

* The RPC implementation in libc is obsoleted. Old programs keep working
but new programs cannot be linked with the routines in libc anymore.
Expand Down
4 changes: 1 addition & 3 deletions sysdeps/posix/spawni.c
Expand Up @@ -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
Expand Down

0 comments on commit f574184

Please sign in to comment.