minor F_SETOWN nit
authorDaniel Jacobowitz <drow@false.org>
Wed, 11 Jul 2001 19:11:07 +0000 (19:11 +0000)
committerDaniel Jacobowitz <drow@false.org>
Wed, 11 Jul 2001 19:11:07 +0000 (19:11 +0000)
gdb/ChangeLog
gdb/gdbserver/remote-utils.c

index e0507b5cdb7484e8ef2d9df715eb5609f0137e65..8bfe1a5d213e791af633308c3fd392806052538c 100644 (file)
@@ -1,3 +1,8 @@
+2001-07-11  Daniel Jacobowitz  <drow@mvista.com>
+
+       * gdbserver/remote-utils.c (remote_open): Only
+       check for F_SETOWN if we had F_SETFL and FASYNC.
+
 2001-07-11  Daniel Jacobowitz  <drow@mvista.com>
 
        From Michael Fedrowitz  <michael.fedrowitz@informatik.uni-ulm.de>:
index 19f671543030be1528b3a43a7c2e1f786d2d85ab..35faf028d23f97216bd39a0430f070b32e7cb8aa 100644 (file)
@@ -158,9 +158,9 @@ remote_open (char *name)
 #if defined(F_SETFL) && defined (FASYNC)
   save_fcntl_flags = fcntl (remote_desc, F_GETFL, 0);
   fcntl (remote_desc, F_SETFL, save_fcntl_flags | FASYNC);
-#endif
 #if defined (F_SETOWN)
   fcntl (remote_desc, F_SETOWN, getpid ());
+#endif
 #endif
   disable_async_io ();
   fprintf (stderr, "Remote debugging using %s\n", name);
This page took 0.028644 seconds and 4 git commands to generate.