Bugzilla – Attachment 3412 Details for
Bug 3181
ssh-agent doesn't exit automatically after child program exits
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fallback to using a signal to see if parent process is still alive on Cygwin.
openssh-cygwin-agent-ppid.patch (text/plain), 468 bytes, created by
Darren Tucker
on 2020-06-19 13:56:16 AEST
(
hide
)
Description:
Fallback to using a signal to see if parent process is still alive on Cygwin.
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2020-06-19 13:56:16 AEST
Size:
468 bytes
patch
obsolete
>diff --git a/ssh-agent.c b/ssh-agent.c >index effffffe..5fe2ec6e 100644 >--- a/ssh-agent.c >+++ b/ssh-agent.c >@@ -1247,6 +1247,16 @@ check_parent_exists(void) > cleanup_socket(); > _exit(2); > } >+#ifdef HAVE_CYGWIN >+ /* >+ * On Cygwin we won't get reparented, so also test with a no-op signal. >+ * This is vulnerable to pid reuse, so only enabled where necessary. >+ */ >+ if (kill(parent_pid, 0) != 0) { >+ cleanup_socket(); >+ _exit(2); >+ } >+#endif > } > > static void
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 3181
: 3412