cgi-io: merge changes from luci2-io-helper
authorDaniel Golle <daniel@makrotopia.org>
Mon, 19 Jun 2017 10:48:32 +0000 (12:48 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 19 Jun 2017 10:49:59 +0000 (12:49 +0200)
commite7b5bdd9e90443bcb78f8d7f90e01a2b8d215991
tree870115f7326d57e8ab954bff9eb817ca7bf45104
parent1f50e104f3dbc5fca664baf8f886eddd783b70a6
cgi-io: merge changes from luci2-io-helper

luci2-io-helper: bugfix buckup script read timeout

Reading files from stdin will block for ever. The uhttpd is killing the
backup process after script_timeout.

Switching read to non blocking mode and add a waitpid for the slave
process does not end in a script_timeout anymore.

Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
net/cgi-io/Makefile
net/cgi-io/src/main.c