chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2006d9a
)
shutdown: untabify
author
Lennart Poettering
<lennart@poettering.net>
Fri, 22 Jul 2011 02:32:22 +0000
(
04:32
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 22 Jul 2011 02:32:22 +0000
(
04:32
+0200)
src/shutdown.c
patch
|
blob
|
history
diff --git
a/src/shutdown.c
b/src/shutdown.c
index d6b47c5a7857fcab6d2e940f39e9b6145062d583..6714927f86391d2e95013bc09990364b79e85cc0 100644
(file)
--- 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);
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;
}
return 0;