From: Pedro Alves <palves@redhat.com>
To: Patrick Palka <patrick@parcs.ath.cx>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Make sure terminal settings are restored before exiting
Date: Wed, 29 Jul 2015 12:15:00 -0000 [thread overview]
Message-ID: <55B8C3F7.6010602@redhat.com> (raw)
In-Reply-To: <CA+C-WL9gNZo1sA7fc3XDUbFM1zLZVHcGnSCa4-gKGo5bf7Dr=g@mail.gmail.com>
On 07/29/2015 12:37 PM, Patrick Palka wrote:
> Just very recently I discovered the $PPID environment variable, a
> standardized (thus hopefully portable) variable that should contain
> the pid of the parent process. With it we can do "shell echo $PPID"
> to print the gdb pid and then capture the output of this command with
> expect. I'll try this approach.
Good idea, sounds good.
Thanks,
Pedro Alves
prev parent reply other threads:[~2015-07-29 12:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-28 3:18 Patrick Palka
2015-07-28 22:20 ` Patrick Palka
2015-07-28 23:53 ` Pedro Alves
2015-07-29 11:39 ` Patrick Palka
2015-07-29 0:09 ` Pedro Alves
2015-07-29 11:38 ` Patrick Palka
2015-07-29 12:15 ` Pedro Alves [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=55B8C3F7.6010602@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=patrick@parcs.ath.cx \
/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