git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [bug] git clone command leaves orphaned ssh process
@ 2023-09-10  6:38 Max Amelchenko
  2023-09-10  8:50 ` Bagas Sanjaya
  0 siblings, 1 reply; 9+ messages in thread
From: Max Amelchenko @ 2023-09-10  6:38 UTC (permalink / raw)
  To: git

What did you do before the bug happened? (Steps to reproduce your issue)

Run the command:
ps aux
Observe no ssh processes running on system.

Run git clone against a non-existent hostname:
git clone -v --depth=1 -b 3.23.66
ssh://*****@*****lab-prod.server.sim.cloud/terraform/modules/aws-eks
/tmp/dest
Observe the command fails with:

Could not resolve hostname *****lab-prod.server.sim.cloud: Name or
service not known

Run:
ps aux

Observe a defunct ssh process is left behind.


What did you expect to happen? (Expected behavior)
I expected the command to quit without leaving any processes behind.

What happened instead? (Actual behavior)
The command quit and left a defunct ssh process on the system.

What's different between what you expected and what actually happened?
I don't want zombie processes left after any git command (either failed or not).

Anything else you want to add:
These processes are zombie orphaned, meaning we're stuck with them
until system reboot (which is bad).

Please review the rest of the bug report below.

You can delete any lines you don't wish to share.



[System Info]

git version:

git version 2.40.1

cpu: aarch64

no commit associated with this build

sizeof-long: 8

sizeof-size_t: 8

shell-path: /bin/sh

compiler info: gnuc: 7.3

libc info: glibc: 2.26

$SHELL (typically, interactive shell): <unset>



[Enabled Hooks]

not run from a git repository - no hooks to show

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-09-25 12:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-10  6:38 [bug] git clone command leaves orphaned ssh process Max Amelchenko
2023-09-10  8:50 ` Bagas Sanjaya
2023-09-10  9:47   ` Max Amelchenko
2023-09-10 18:47     ` Taylor Blau
2023-09-11 10:11       ` Max Amelchenko
2023-09-12  0:40         ` Aaron Schrab
2023-09-12  4:33           ` Jeff King
2023-09-24 10:25             ` Max Amelchenko
2023-09-25 12:29               ` Jeff King

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 NNTP newsgroup(s).