diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-09-01 01:45:42 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-09-01 01:46:30 +0200 |
commit | b07024d194a5503fd87b32cab3c3a212b28738e1 (patch) | |
tree | 278c963754663e3195e143d33d77cebe22b6dade /startup/startup.c | |
parent | 02d6d9f0998809e32fb438064a2733b64b89be08 (diff) |
startup: Fix looping over runsystem
Thanks Brent W. Baccala for the report.
* starpu/startup.c (launch_something): Always increment TRY while looping
over runsystem possibilities.
Diffstat (limited to 'startup/startup.c')
-rw-r--r-- | startup/startup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/startup/startup.c b/startup/startup.c index 49ba9ce4..3c757e96 100644 --- a/startup/startup.c +++ b/startup/startup.c @@ -1199,9 +1199,10 @@ launch_something (const char *why) if (something != MACH_PORT_NULL) { mach_port_deallocate (mach_task_self (), something); - if (start_child (tries[try++], NULL) == 0) + if (start_child (tries[try], NULL) == 0) return; } + try++; } crash_system (); |