fre 2011-12-16 klockan 22:04 +0800 skrev Ahmad Zaidee Abu:
> The application works well with cc: HP C/aC++ B3910B A.06.20 but core
> dump due to SIGPIPE error when compiled with another machine with cc:
> HP C/aC++ B3910B A.06.25.
SIGPIPE is a generic UNIX signal, received when an application tries to
write to a no longer existing pipe/socket connection.
To avoid this crashing your application, set the signal as ignored.
#include <signal.h>
[...]
signal(SIGPIPE, SIG_IGN);
Regards
Henrik
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-12-16