Fix various problems with unchecked return values from syscalls.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2014-11-27 00:12:07 +01:00
1 parent def759fe41
commit 02a97e8d7d
10 files changed
+25 -16

No files matched your search

+1 -1
View File
@@ -211,7 +211,7 @@ void svc_runlevel(int newlevel)
if (runlevel == 1)
touch("/etc/nologin"); /* Disable login in single-user mode */
else
remove("/etc/nologin");
erase("/etc/nologin");
if (0 != prevlevel)
tty_runlevel(runlevel);