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