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)
commit504a51fba618b9f7bf46693714bb672c49fc3323
tree64b92b604fb03b11e67de64e490d2c03d43b324d
parent7b1588384291ef5f19145010bd0f33e15d221c79
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>
Makefile
src/main.c