diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-07-22 04:32:22 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-07-22 04:32:22 +0200 |
commit | bccc1d8859175f0927652d694796892c9e9c21d6 (patch) | |
tree | d3665acaa2571eab06a3f8ae48a5b3cbb9995299 /src/shutdown.c | |
parent | 2006d9acb1248e4225d31c420520c043b1ae044d (diff) |
shutdown: untabify
Diffstat (limited to 'src/shutdown.c')
-rw-r--r-- | src/shutdown.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/shutdown.c b/src/shutdown.c index d6b47c5a78..6714927f86 100644 --- a/src/shutdown.c +++ b/src/shutdown.c @@ -276,9 +276,10 @@ static int pivot_to_new_root(void) { log_error("Failed to open /dev/console: %m"); else { make_stdio(fd); - /* initialize the controlling terminal */ - setsid(); - ioctl(0, TIOCSCTTY, NULL); + + /* Initialize the controlling terminal */ + setsid(); + ioctl(STDIN_FILENO, TIOCSCTTY, NULL); } return 0; |