• Andrew Morton's avatar
    [PATCH] sched: balance-on-exec fix · eb313b41
    Andrew Morton authored
    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: default avatarIngo Molnar <mingo@elte.hu>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    eb313b41
exec.c 31.1 KB