From: Chong Yidong <cyd@gnu.org>
To: Glenn Morris <rgm@gnu.org>
Cc: sds@gnu.org, 11273@debbugs.gnu.org
Subject: bug#11273: 24.0.94; quitting gdb
Date: Fri, 20 Apr 2012 00:47:41 +0800 [thread overview]
Message-ID: <87k41bhdn6.fsf@gnu.org> (raw)
In-Reply-To: <r7k41bsnl9.fsf@fencepost.gnu.org> (Glenn Morris's message of "Thu, 19 Apr 2012 12:17:22 -0400")
Glenn Morris <rgm@gnu.org> writes:
> Chong Yidong wrote:
>
>> In the meantime, I installed a workaround to explicitly call
>> delete-process on the pty in the sentinel of the main gdb process.
>
> Maybe you fixed bug#4437 then?
Aha, looks like the situation is this:
In Bug#4437, Nick Roberts proposed a patch to process.c to avoid sending
a SIGCHLD to itself when it receives an EIO errno. However, he noted
that this
means that status_notify isn't called from
wait_reading_process_output because this call is conditioned on
select which returns a positive value (presumably because the pty's
file descriptor hasn't been cleared).
which is the problem I noticed. Nick didn't commit the patch at the
time.
In Bug#10933, Troels Nielsen independently proposed the same patch,
which was committed by Stefan on 2012-03-23.
The question is what to do about the problem. I didn't test this, but
it may be that the patch causes ALL process sentinels to be blocked
while the gdb process is running, which is kinda unacceptable.
next prev parent reply other threads:[~2012-04-19 16:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-18 18:22 bug#11273: 24.0.94; quitting gdb Sam Steingold
2012-04-19 8:27 ` Chong Yidong
2012-04-19 16:17 ` Glenn Morris
2012-04-19 16:47 ` Chong Yidong [this message]
2012-04-19 17:26 ` Glenn Morris
2012-04-19 18:22 ` Troels Nielsen
2012-04-20 2:50 ` Chong Yidong
2012-04-20 6:42 ` Chong Yidong
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=87k41bhdn6.fsf@gnu.org \
--to=cyd@gnu.org \
--cc=11273@debbugs.gnu.org \
--cc=rgm@gnu.org \
--cc=sds@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.