[binutils-gdb] Don't use F_SETFL in gdbreplay

Tom Tromey via Gdb-cvs <[email protected]>
Newsgroups gmane.comp.gdb.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4c24ffb53cd359a329e264b4c8f47c3bf1f2b094

commit 4c24ffb53cd359a329e264b4c8f47c3bf1f2b094
Author: Tom Tromey <[email protected]>
Date:   Wed Jul 1 12:39:31 2026 -0600

    Don't use F_SETFL in gdbreplay
    
    There's no need to call fcntl with F_SETFL in gdbreplay, as gdbreplay
    does not use or need SIGIO.
    
    Approved-By: Simon Marchi <[email protected]>

Diff:
---
 gdbserver/gdbreplay.cc | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/gdbserver/gdbreplay.cc b/gdbserver/gdbreplay.cc
index 4426dc316ec..f4626ceadb8 100644
--- a/gdbserver/gdbreplay.cc
+++ b/gdbserver/gdbreplay.cc
@@ -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;
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.