mirror of https://github.com/FreeRDP/FreeRDP
server/test: add SIGPIPE handler.
This commit is contained in:
parent
5ad6a5d9d8
commit
413824d134
|
@ -23,6 +23,7 @@
|
|||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <pthread.h>
|
||||
#include <signal.h>
|
||||
#include <freerdp/constants.h>
|
||||
#include <freerdp/utils/memory.h>
|
||||
#include <freerdp/utils/thread.h>
|
||||
|
@ -450,6 +451,9 @@ int main(int argc, char* argv[])
|
|||
{
|
||||
freerdp_listener* instance;
|
||||
|
||||
/* Ignore SIGPIPE, otherwise an SSL_write failure could crash your server */
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
|
||||
instance = freerdp_listener_new();
|
||||
|
||||
instance->PeerAccepted = test_peer_accepted;
|
||||
|
|
Loading…
Reference in New Issue