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

sthibault pushed a commit to branch upstream
in repository hurd.

commit edb2947461fbea9b25a651afd1cf35dc49733ce6
Author: Samuel Thibault <[email protected]>
Date:   Thu Sep 1 01:49:41 2016 +0200

    Fix looping over runsystem possibilities
    
    * startup/startup.c (launch_something): Always increment TRY even on
    success, so that if runsystem unexpectedly returns, we get to try a shell
    instead.
---
 startup/startup.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/startup/startup.c b/startup/startup.c
index 3c757e9..f54de5e 100644
--- a/startup/startup.c
+++ b/startup/startup.c
@@ -1199,10 +1199,11 @@ 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++;
+      else
+       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