{"thread":{"id":"60199","subject":"git clone command leaves orphaned ssh process on system","startedAt":"2023-09-05T19:08:08Z","lastAt":"2023-09-05T19:08:08Z","messageCount":1,"participants":["Max Amelchenko"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"481404","messageId":"CAN47KsVqamQgFT6sNS=C3Mz=aHEeaRYCYDrkFp3YgZUkSNYzqw@mail.gmail.com","threadId":"60199","inReplyTo":null,"subject":"git clone command leaves orphaned ssh process on system","fromName":"Max Amelchenko","fromEmail":"maxamel2002@gmail.com","sentAt":"2023-09-05T19:06:27Z","receivedAt":"2023-09-05T19:08:08Z","isPatch":false,"sender":{"key":"maxamel2002@gmail.com","avatar":null},"body":"What did you do before the bug happened? (Steps to reproduce your issue)\n\nRun the command:\nps aux\nObserve no ssh processes running on system.\n\nRun git clone against a non-existent hostname:\ngit clone -v --depth=1 -b 3.23.66\nssh://*****@*****lab-prod.server.sim.cloud/terraform/modules/aws-eks\n/tmp/dest\nObserve the command fails with:\n\nCould not resolve hostname *****lab-prod.server.sim.cloud: Name or\nservice not known\n\nRun:\nps aux\n\nObserve a defunct ssh process is left behind.\n\n\nWhat did you expect to happen? (Expected behavior)\nI expected the command to quit without leaving any processes behind.\n\nWhat happened instead? (Actual behavior)\nThe command quit and left a defunct ssh process on the system.\n\nWhat's different between what you expected and what actually happened?\nI don't want zombie processes left after any git command (either failed or not).\n\nAnything else you want to add:\nThese processes are zombie orphaned, meaning we're stuck with them\nuntil system reboot (which is bad).\n\nPlease review the rest of the bug report below.\n\nYou can delete any lines you don't wish to share.\n\n\n\n[System Info]\n\ngit version:\n\ngit version 2.40.1\n\ncpu: aarch64\n\nno commit associated with this build\n\nsizeof-long: 8\n\nsizeof-size_t: 8\n\nshell-path: /bin/sh\n\ncompiler info: gnuc: 7.3\n\nlibc info: glibc: 2.26\n\n$SHELL (typically, interactive shell): <unset>\n\n\n\n[Enabled Hooks]\n\nnot run from a git repository - no hooks to show\n"}]}