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

John Crispin blogic at openwrt.org
Mon Oct 6 13:52:12 EDT 2014


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 @@ int main(int argc, char **argv)
>  			return usage(argv[0]);
>  		}
>  	}
> +	fcntl(STDERR_FILENO, F_SETFL, fcntl(STDERR_FILENO, F_GETFL) | O_NONBLOCK);

i have moved this line to initd/early.c where the rest of the
stdin/out/err happens. procd inherits the fds from the preinit and i
assume the fcntl is persitent. can you verify that this is the case
please once i pushed the changes ?


>  	uloop_init();
>  	uloop_release_sigint();
>  	procd_signal();
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list