summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilton D. Miller II <miltonm@us.ibm.com>2016-02-28 17:18:44 -0600
committerMilton D. Miller II <miltonm@us.ibm.com>2016-03-02 20:01:23 -0600
commitc67caaceb40050e59e30e6cca667568480034b93 (patch)
tree0536a817fe3bb99fe9022d6e770c807667e26787
parent576ea812a59f95fc41d40fceb721c121d0dd754d (diff)
downloadtalos-openbmc-c67caaceb40050e59e30e6cca667568480034b93.tar.gz
talos-openbmc-c67caaceb40050e59e30e6cca667568480034b93.zip
shutdown: Correct comment on the reason to invoke stty
The desired system call is not an ioctl but tcsetattr with second parameter TCSADRAIN. Reported-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Milton Miller <miltonm@us.ibm.com>
-rw-r--r--meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-shutdown.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-shutdown.sh b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-shutdown.sh
index 216e7e403..097d9e086 100644
--- a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-shutdown.sh
+++ b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-shutdown.sh
@@ -47,7 +47,7 @@ cat /proc/mounts
test "$umount_proc" && umount /proc && rmdir /proc
-# ioctl(TIOC_DRAIN) to drain tty messages to console
+# tcsattr(tty, TIOCDRAIN, mode) to drain tty messages to console
test -t 1 && stty cooked 0<&1
# Execute the command systemd told us to ...
OpenPOWER on IntegriCloud