Re: [OpenWrt-Devel] [PATCH procd 4/8] Fix scroll lock blocking procd

2014-10-06 Thread John Crispin
On 02/10/2014 14:56, Michel Stam wrote: diff --git a/procd.c b/procd.c index 6ec7cd0..32febd6 100644 --- a/procd.c +++ b/procd.c @@ -16,6 +16,7 @@ #include sys/types.h #include sys/stat.h +#include fcntl.h #include unistd.h #include getopt.h #include libgen.h @@ -61,6 +62,7 @@

[OpenWrt-Devel] [PATCH procd 4/8] Fix scroll lock blocking procd

2014-10-02 Thread Michel Stam
On x86, pressing the scrolllock button may effectively prevent procd from rebooting the system. This happens because procd tries to write to /dev/console, which in that situation is blocked, effectively blocking procd from rebooting the system. This patch puts procd's stderr access into