proc: do not cancel script killing after writing headers
authorSantiago Piccinini <spiccinini@altermundi.net>
Thu, 10 Oct 2019 20:26:48 +0000 (17:26 -0300)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 3 Jun 2020 09:42:58 +0000 (10:42 +0100)
commit939c281c70ef82929ffcb3cb383fd6fdc40f341b
tree3013c6c9f2d5a5a255e6a484867cfa7eb96d60a8
parent5e9c23c6f40ff26209ef22cfeeda4904a5918f3d
proc: do not cancel script killing after writing headers

Before this change if the cgi script hangs after writing headers
then the process will never be killed. Let's only cancel the timeout
if the process ends.

Signed-off-by: Santiago Piccinini <spiccinini@altermundi.net>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
proc.c