[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 15/28: boot: restore terminal state on exit
From: |
Samuel Thibault |
Subject: |
[hurd] 15/28: boot: restore terminal state on exit |
Date: |
Wed, 16 Nov 2016 08:30:27 +0000 |
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 <address@hidden>
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
- [hurd] branch upstream updated (341f43d -> 385d9bf), Samuel Thibault, 2016/11/16
- [hurd] 06/28: libdiskfs: fix removal of socket nodes, Samuel Thibault, 2016/11/16
- [hurd] 01/28: libdiskfs: Fix timestamp update on file close, Samuel Thibault, 2016/11/16
- [hurd] 04/28: wire console display pages, Samuel Thibault, 2016/11/16
- [hurd] 02/28: libdiskfs: Make utimes RPC flush pending timestamp updates, Samuel Thibault, 2016/11/16
- [hurd] 11/28: startup: Dump processes if we cannot find the kernel., Samuel Thibault, 2016/11/16
- [hurd] 03/28: Fix typo, Samuel Thibault, 2016/11/16
- [hurd] 12/28: boot: Use the smallest possible name when inserting rights., Samuel Thibault, 2016/11/16
- [hurd] 15/28: boot: restore terminal state on exit,
Samuel Thibault <=
- [hurd] 18/28: boot: Tidy up the argument parser., Samuel Thibault, 2016/11/16
- [hurd] 24/28: eth-multiplexer: Avoid local definitions., Samuel Thibault, 2016/11/16
- [hurd] 28/28: libpager: fix returning error on data_unlock, Samuel Thibault, 2016/11/16
- [hurd] 08/28: proc: Fix new task notifications., Samuel Thibault, 2016/11/16
- [hurd] 19/28: Adjust to the fixed new task notifications., Samuel Thibault, 2016/11/16
- [hurd] 22/28: eth-multiplexer: Fix packet delivery., Samuel Thibault, 2016/11/16
- [hurd] 16/28: boot: Allow unprivileged users to boot Subhurds., Samuel Thibault, 2016/11/16
- [hurd] 17/28: boot: Add a default boot script., Samuel Thibault, 2016/11/16
- [hurd] 10/28: Add missing spinlock initializers, Samuel Thibault, 2016/11/16
- [hurd] 23/28: eth-multiplexer: Fix retrieving status of virtual interfaces., Samuel Thibault, 2016/11/16