This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Make sure terminal settings are restored before exiting
- From: Pedro Alves <palves at redhat dot com>
- To: Patrick Palka <patrick at parcs dot ath dot cx>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Wed, 29 Jul 2015 13:15:51 +0100
- Subject: Re: [PATCH] Make sure terminal settings are restored before exiting
- Authentication-results: sourceware.org; auth=none
- References: <1438053504-21507-1-git-send-email-patrick at parcs dot ath dot cx> <55B819B5 dot 5070800 at redhat dot com> <CA+C-WL9gNZo1sA7fc3XDUbFM1zLZVHcGnSCa4-gKGo5bf7Dr=g at mail dot gmail dot 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