From b07024d194a5503fd87b32cab3c3a212b28738e1 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 1 Sep 2016 01:45:42 +0200 Subject: 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. --- startup/startup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'startup') 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 (); -- cgit v1.2.3