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

sthibault pushed a commit to branch upstream
in repository hurd.

commit 7ab8e74f1331b70dd52e604d0010a49fabf9e549
Author: Justus Winter <[email protected]>
Date:   Sun Feb 8 01:54:12 2015 +0100

    boot: restore terminal state on exit
    
    * boot/boot.c (host_exit): Make it a function and restore the terminal 
state.
---
 boot/boot.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/boot/boot.c b/boot/boot.c
index 69c3033..ab9c164 100644
--- a/boot/boot.c
+++ b/boot/boot.c
@@ -90,7 +90,13 @@ restore_termstate ()
 
 #define host_fstat fstat
 typedef struct stat host_stat_t;
-#define host_exit exit
+
+void __attribute__ ((__noreturn__))
+host_exit (int status)
+{
+  restore_termstate ();
+  exit (status);
+}
 
 mach_port_t privileged_host_port, master_device_port;
 mach_port_t pseudo_master_device_port;

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

Reply via email to