when a large file Download was stoped the Server exited with SIGPIPE - fixed

This commit is contained in:
René Linder 2022-02-17 13:19:46 +01:00
parent 2ce4902b39
commit 7c9a610f47

View file

@ -13,6 +13,17 @@ CompilerIf #PB_Compiler_OS <> #PB_OS_Linux
CompilerError "Only for Linux"
CompilerEndIf
;***********************
;* The SIGPIPE Signal must be Handled Inside / Ignored
#SIGPIPE = 13
Procedure SignalIgnore()
Debug("Signal Ignore")
EndProcedure
;***********************
signal_(#SIGPIPE, @SignalIgnore());
DeclareModule lsocket
Structure sockaddr
sa_family.w