vp-build/srcpkgs/fcgi/patches/reset-file-descriptor-after-closing.patch
2018-10-03 11:31:44 -03:00

18 lines
485 B
Diff

Author: André Düwel
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/libfcgi/+bug/1248516
Description: reset file descriptor after closing
Fixes problem: FastCGI Application occasionally hangs in an infinite loop
after restarting of Apache.
Forwarded: no
--- libfcgi/os_unix.c
+++ libfcgi/os_unix.c
@@ -1199,6 +1199,7 @@
break;
close(socket);
+ socket = -1;
} /* socket >= 0 */
} /* for(;;) */