shutdown: untabify

This commit is contained in:
Lennart Poettering 2011-07-22 04:32:22 +02:00
parent 2006d9acb1
commit bccc1d8859
1 changed files with 4 additions and 3 deletions

View File

@ -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;