Re: [OpenWrt-Devel] [PATCH procd 2/4] system: fix failing image validation due to EINTR

2020-01-04 Thread Hauke Mehrtens
On 1/3/20 1:46 AM, Petr Štetiar wrote: > It was quite common to see following error during sysupgrade on serial > console: > > Failed to parse JSON: 4 > > This is happening due to the fact, that validate_firmware_image_call > fork()s then waits in blocking read() for the input from the child >

[OpenWrt-Devel] [PATCH procd 2/4] system: fix failing image validation due to EINTR

2020-01-02 Thread Petr Štetiar
It was quite common to see following error during sysupgrade on serial console: Failed to parse JSON: 4 This is happening due to the fact, that validate_firmware_image_call fork()s then waits in blocking read() for the input from the child process, but child finishes its tasks and exits, thus