diff options
author | Miles Bader <miles@gnu.org> | 1996-05-27 15:34:21 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-05-27 15:34:21 +0000 |
commit | 0488da0dd5477b22c3faa6f61e8ff5c422705486 (patch) | |
tree | a8f19ccc5fd01e27a078437bf4e7dd7d77758ffb | |
parent | dbc4c5187b1d41e3331b3c11a45ecfeb5e4f6975 (diff) |
(launch_single_user): Print errno on assertion failure.
-rw-r--r-- | init/init.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/init/init.c b/init/init.c index 902c2fc5..9c845377 100644 --- a/init/init.c +++ b/init/init.c @@ -709,8 +709,10 @@ launch_single_user () Otherwise, open fd's 0, 1, and 2. */ if (term != MACH_PORT_NULL) { + errno = 0; fd = open (termname, O_RDWR); - assert (fd != -1); + assert_perror (perror); + dup2 (fd, 0); close (fd); dup2 (0, 1); |