From: vapnik spaknik via General Guile related discussions <guile-user@gnu.org>
To: Sebastian Miele <sebastian.miele@gmail.com>
Cc: guile-user@gnu.org
Subject: Re: how to kill child process?
Date: Tue, 25 Aug 2020 18:21:41 +0000 (UTC) [thread overview]
Message-ID: <1083902454.6079490.1598379701106@mail.yahoo.com> (raw)
In-Reply-To: <87zh6jlw37.fsf@gmail.com>
On Monday, August 24, 2020, 07:47:42 PM GMT+1, Sebastian Miele <sebastian.miele@gmail.com> wrote:
>When I put
>
> (let ((pid (primitive-fork))
> (host THE-HOST)
> (control "~/.ssh/%C"))
> (if (eq? 0 pid)
> (execlp "ssh" "ssh"
> "-F" "none"
> "-S" control
> "-N" "-M"
> host)
> (begin
> (display pid)
> (sleep 3600))))
>
>into a file '0.scm' and run it using, e.g., 'guile 0.scm' (tested with
>Guile 3.0.4, 2.2.6, and 1.8.8), and after that run 'pgrep -a ssh' in
>another terminal, I do get the same PIDs.
OK, I think I've found the problem; I have firejail installed, so when I run ssh it actually runs firejail, which in turn runs ssh as a child process, and so the pid reported by guile doesn't match the pid of the ssh process.
If I replace "ssh" with "/usr/bin/ssh" they match.
Thanks for your help.
prev parent reply other threads:[~2020-08-25 18:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <2139767403.5164633.1598212258730.ref@mail.yahoo.com>
2020-08-23 19:50 ` how to kill child process? vapnik spaknik
2020-08-23 20:31 ` Sebastian Miele
2020-08-23 23:08 ` Sebastian Miele
2020-08-24 11:07 ` vapnik spaknik via General Guile related discussions
2020-08-24 12:05 ` Sebastian Miele
2020-08-24 13:15 ` vapnik spaknik via General Guile related discussions
2020-08-24 14:27 ` Sebastian Miele
2020-08-24 14:33 ` Sebastian Miele
2020-08-24 16:51 ` vapnik spaknik via General Guile related discussions
2020-08-24 18:47 ` Sebastian Miele
2020-08-25 18:21 ` vapnik spaknik via General Guile related discussions [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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1083902454.6079490.1598379701106@mail.yahoo.com \
--to=guile-user@gnu.org \
--cc=sebastian.miele@gmail.com \
--cc=vapniks@yahoo.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).