From: "Eli Zaretskii" <eliz@is.elta.co.il>
To: dmj+@andrew.cmu.edu
Cc: gdb-patches@sources.redhat.com
Subject: Re: PATCH: Make gdbserver use async I/O on Linux
Date: Thu, 07 Jun 2001 11:38:00 -0000 [thread overview]
Message-ID: <7458-Thu07Jun2001213544+0300-eliz@is.elta.co.il> (raw)
In-Reply-To: <20010607104346.B19961@nevyn.them.org>
> Date: Thu, 7 Jun 2001 10:43:46 -0700
> From: Daniel Jacobowitz <dmj+@andrew.cmu.edu>
>
> Easy enough. How about this, then?
>
> --
> Daniel Jacobowitz Debian GNU/Linux Developer
> Monta Vista Software Debian Security Team
>
> --ibTvN161/egqYuK8
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: attachment; filename="async2.diff"
>
> Index: gdb/gdbserver/low-linux.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/gdbserver/low-linux.c,v
> retrieving revision 1.9
> diff -u -r1.9 low-linux.c
> --- low-linux.c 2001/03/28 09:15:22 1.9
> +++ low-linux.c 2001/06/07 17:37:52
> @@ -105,7 +105,9 @@
> int pid;
> union wait w;
>
> + enable_async_io ();
> pid = wait (&w);
> + disable_async_io ();
> if (pid != inferior_pid)
> perror_with_name ("wait");
>
> Index: gdb/gdbserver/remote-utils.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/gdbserver/remote-utils.c,v
> retrieving revision 1.4
> diff -u -r1.4 remote-utils.c
> --- remote-utils.c 2001/03/06 08:21:44 1.4
> +++ remote-utils.c 2001/06/07 17:37:52
> @@ -156,6 +156,9 @@
> #if defined(F_SETFL) && defined (FASYNC)
> save_fcntl_flags = fcntl (remote_desc, F_GETFL, 0);
> fcntl (remote_desc, F_SETFL, save_fcntl_flags | FASYNC);
> +#if defined(F_SETOWN)
> + fcntl (remote_desc, F_SETOWN, getpid());
> +#endif
> disable_async_io ();
> #endif /* FASYNC */
> fprintf (stderr, "Remote debugging using %s\n", name);
>
> --ibTvN161/egqYuK8--
>
Looks good to me. Thanks!
next prev parent reply other threads:[~2001-06-07 11:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-06 14:03 Daniel Jacobowitz
2001-06-06 23:34 ` Eli Zaretskii
2001-06-07 10:43 ` Daniel Jacobowitz
2001-06-07 11:38 ` Eli Zaretskii [this message]
2001-06-07 12:04 ` Daniel Jacobowitz
2001-06-08 0:37 ` Eli Zaretskii
2001-06-21 13:28 ` J.T. Conklin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7458-Thu07Jun2001213544+0300-eliz@is.elta.co.il \
--to=eliz@is.elta.co.il \
--cc=dmj+@andrew.cmu.edu \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox