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
A workaround for SIGPIPE, you can ignore this signal by this code:
#include
/* Catch Signal Handler functio */
void signal_callback_handler(int signum){
printf("Caught signal SIGPIPE %d\n",signum);
}
in your code (main or globally)
/* Catch Signal Handler SIGPIPE */
signal(SIGPIPE, signal_callback_handler);