]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Don't use F_SETFL in gdbreplay
authorTom Tromey <tromey@adacore.com>
Wed, 1 Jul 2026 18:39:31 +0000 (12:39 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 12 Aug 2026 19:18:00 +0000 (13:18 -0600)
There's no need to call fcntl with F_SETFL in gdbreplay, as gdbreplay
does not use or need SIGIO.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdbserver/gdbreplay.cc

index 4426dc316ecb6da0fb5d81fb7ff128cc81ace401..f4626ceadb82bf9062d7ceb533be67a5703b3d08 100644 (file)
@@ -32,9 +32,6 @@
 #if HAVE_SIGNAL_H
 #include <signal.h>
 #endif
-#if HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
 #include <unistd.h>
 #ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
@@ -255,9 +252,6 @@ remote_open (const char *name)
 #endif
     }
 
-#if defined(F_SETFL) && defined (FASYNC)
-  fcntl (remote_desc_in, F_SETFL, FASYNC);
-#endif
   remote_desc_out = remote_desc_in;
 }