Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tom@tromey.com>
To: Abdul Basit Ijaz <abdul.b.ijaz@intel.com>
Cc: gdb-patches@sourceware.org,  tankut.baris.aktemur@intel.com
Subject: Re: [PATCH 1/1] gdb: use waitpid directly in wait_to_die_with_timeout
Date: Tue, 28 Apr 2026 09:37:43 -0600	[thread overview]
Message-ID: <87mrynm6yg.fsf@tromey.com> (raw)
In-Reply-To: <20260420131255.3744-1-abdul.b.ijaz@intel.com> (Abdul Basit Ijaz's message of "Mon, 20 Apr 2026 15:12:55 +0200")

>>>>> Abdul Basit Ijaz <abdul.b.ijaz@intel.com> writes:

> This is a regression since commit "[gdb] Use gdb::waitpid more often",
> before which GDB was giving the prompt after a timeout.  The reason is
> in wait_to_die_with_timeout GDB calls gdb::waitpid to wait for
> gdbserver with an interrupt timeout set by an alarm call.  In
> gdb::waitpid, we call gdb::handle_eintr, which repeatedly makes the
> syscall if it's interrupted.  In this case, however, we wouldn't want
> to repeat the waitpid if the timeout expired.  Hence, go back to using
> waitpid directly, instead of gdb::waitpid, to restore the previous
> behavior.

Makes sense.  Thanks.
Approved-By: Tom Tromey <tom@tromey.com>

Tom

      reply	other threads:[~2026-04-28 15:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-20 13:12 Abdul Basit Ijaz
2026-04-28 15:37 ` Tom Tromey [this message]

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=87mrynm6yg.fsf@tromey.com \
    --to=tom@tromey.com \
    --cc=abdul.b.ijaz@intel.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tankut.baris.aktemur@intel.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