Program received signal SIGPIPE, Broken pipe

后端 未结 5 1943
陌清茗
陌清茗 2020-12-04 14:50

I write a client program based on posix sockets. The program creates multiple threads and is going to lock the server. But during debug in gdb time the program gives an info

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-04 14:59

    I sort of experienced the same problem and it let me to this SO post. I got sporadic SIGPIPE signals causing crashes of my fastcgi C program run by nginx. I tried to signal(SIGPIPE, SIG_IGN); without luck, it kept crashing.

    The reason was that nginx's temp dir had a permission problem. Fixing the permissions solved the SIGPIPE problem. Details here on how to fix and more here.

提交回复
热议问题