]> git.hungrycats.org Git - linux/commit
[PATCH] sched: balance-on-exec fix
authorAndrew Morton <akpm@osdl.org>
Thu, 3 Jun 2004 00:59:43 +0000 (17:59 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 3 Jun 2004 00:59:43 +0000 (17:59 -0700)
commiteb313b410e0df742ad69f91173e26e356edd0d4f
treeefd3c2bb88676c8f1402e7ce8550f57d86979af2
parentce247d90f8263304a25e2b5ac61528e4f0b79b5d
[PATCH] sched: balance-on-exec fix

From: Jack Steiner <steiner@sgi.com>

It looks like the call to sched_balance_exec() from do_execve() is in the
wrong spot.  The code calls sched_balance_exec() before determining whether
"filename" actually exists.

In many cases, users have several entries in $PATH.  If a full path name is
not specified on the 'exec" call, the library code iterates thru the files
in the PATH list until it finds the program.  This can result is numerous
migrations of the parent process before the program is actually found.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/exec.c