shutdown: untabify
This commit is contained in:
parent
2006d9acb1
commit
bccc1d8859
|
@ -276,9 +276,10 @@ static int pivot_to_new_root(void) {
|
||||||
log_error("Failed to open /dev/console: %m");
|
log_error("Failed to open /dev/console: %m");
|
||||||
else {
|
else {
|
||||||
make_stdio(fd);
|
make_stdio(fd);
|
||||||
/* initialize the controlling terminal */
|
|
||||||
setsid();
|
/* Initialize the controlling terminal */
|
||||||
ioctl(0, TIOCSCTTY, NULL);
|
setsid();
|
||||||
|
ioctl(STDIN_FILENO, TIOCSCTTY, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue