mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-14 11:01:07 +00:00
bring back a not-quite-infinite loop (#8386)
This commit is contained in:
parent
60161d2bef
commit
7071e51d1a
@ -895,9 +895,7 @@ int send_vcont(libgdbr_t *g, const char *command, const char *thread_id) {
|
||||
#elif __UNIX__ || __CYGWIN__
|
||||
signal (SIGINT, _sigint_handler);
|
||||
#endif
|
||||
// Fix infinite loop if connection is lost
|
||||
// while ((ret = read_packet (g)) < 0);
|
||||
ret = read_packet (g);
|
||||
while ((ret = read_packet (g)) < 0 && r_socket_is_connected (g->sock));
|
||||
|
||||
// Unset signal handler
|
||||
#if __WINDOWS__ && !__CYGWIN__
|
||||
|
Loading…
x
Reference in New Issue
Block a user