commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 06/25: startup: Fix looping over runsystem


From: Samuel Thibault
Subject: [hurd] 06/25: startup: Fix looping over runsystem
Date: Mon, 24 Oct 2016 00:16:44 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit b07024d194a5503fd87b32cab3c3a212b28738e1
Author: Samuel Thibault <address@hidden>
Date:   Thu Sep 1 01:45:42 2016 +0200

    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(-)

diff --git a/startup/startup.c b/startup/startup.c
index 49ba9ce..3c757e9 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 ();

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]