minor F_SETOWN nit

This commit is contained in:
Daniel Jacobowitz 2001-07-11 19:11:07 +00:00
parent 067a7d17c4
commit 94dfea5dd6
2 changed files with 6 additions and 1 deletions

View 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>:

View 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);