summaryrefslogtreecommitdiffstats
path: root/plug/hotplug.c
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-07-19 08:43:35 +0200
committerJohn Crispin <blogic@openwrt.org>2013-07-22 08:18:46 +0200
commitc676a0cbb705a7164ca1306dc6212a45edcad495 (patch)
treee7157115590cbc8314c3fa51b40fea592437c15d /plug/hotplug.c
parent36d79a90c28ac9d655ccd8261b3ac0b497a5aec1 (diff)
downloadunitd-c676a0cbb705a7164ca1306dc6212a45edcad495.tar
unitd-c676a0cbb705a7164ca1306dc6212a45edcad495.zip
early: keep stdio files open
At the end of the 'early_console' function, the file descriptor is closed unconditionally. This 'close' call closes the stdio files if the fd returned by the 'open(dev/console)' call equals with any of the STD{IN,OUT,ERR}_FILENO values. When this happens, all subsequent accesses to the stdio files will fail and early console access won't work. To avoid this, don't close the file descriptor if that equals with any of the STD*_FILENO values. Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Diffstat (limited to 'plug/hotplug.c')
0 files changed, 0 insertions, 0 deletions