From f80685c2591ef0cd09465760a3a1289439315a93 Mon Sep 17 00:00:00 2001 From: pancake Date: Wed, 19 Oct 2016 03:10:48 +0200 Subject: [PATCH] Fix #5992 - Honor ^C in tcp:// --- libr/io/p/io_tcp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libr/io/p/io_tcp.c b/libr/io/p/io_tcp.c index 2908c60e79..e21c0474fa 100644 --- a/libr/io/p/io_tcp.c +++ b/libr/io/p/io_tcp.c @@ -77,6 +77,9 @@ static inline int getmalfd (RIOMalloc *mal) { static ut8 *tcpme (const char *pathname, int *code, int *len) { pathname += 6; *code = 404; +#if __UNIX__ + signal (SIGINT, 0); +#endif if (*pathname == ':') { /* listen and wait for connection */ RSocket *sl = r_socket_new (false);