commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 36/43: startup: Don't spin on host_reboot failures.


From: Samuel Thibault
Subject: [hurd] 36/43: startup: Don't spin on host_reboot failures.
Date: Mon, 11 Sep 2017 07:10:12 +0000

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

sthibault pushed a commit to branch upstream
in repository hurd.

commit 5dc9e5261a67266b6b9f5cfdd95baeba0c808d80
Author: Justus Winter <address@hidden>
Date:   Thu Aug 24 16:06:11 2017 +0200

    startup: Don't spin on host_reboot failures.
    
    * startup/startup.c (reboot_mach): Do not retry needlessly if
    host_reboot fails.
---
 startup/startup.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/startup/startup.c b/startup/startup.c
index 109ed48..7c3fbf0 100644
--- a/startup/startup.c
+++ b/startup/startup.c
@@ -189,9 +189,10 @@ reboot_mach (int flags)
       fprintf (stderr, "%s: %sing Mach (flags %#x)...\n",
                program_invocation_short_name, BOOT (flags), flags);
       sleep (5);
-      while ((err = host_reboot (host_priv, flags)))
-       error (0, err, "reboot");
-      for (;;);
+      err = host_reboot (host_priv, flags);
+      if (err)
+       error (1, err, "reboot");
+      for (;;) sleep (1);
     }
 }
 

-- 
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]