There is a tool written in C language, based on socket programming and multi-threading. If I simply run the tool, there is no error and the tool does its work flawlessly.
But if I run the tool in debugging mode, switching between thread is raising SIGPIPE signal and thus data could not be transferred from the tool to its server.
Would handling the SIGPIPE using SIGNAL(SIGPIPE, SIG_IGN) make the thread work?
As far as I understand, this is being raised due to failing of Inter-Process communication between threads. If it is, then how can one debug such multi-threaded application?
Please suggest me the way to handle this issue.
preguntado el 28 de mayo de 14 a las 13:05