Bugzilla – Attachment 3337 Details for
Bug 3084
Because of the nesting of signal processing functions in SFTP process, many linux system processes in the system are killed.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
test local copy of sshpid
bz3084.diff (text/plain), 371 bytes, created by
Damien Miller
on 2019-10-27 12:07:11 AEDT
(
hide
)
Description:
test local copy of sshpid
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2019-10-27 12:07:11 AEDT
Size:
371 bytes
patch
obsolete
>diff --git a/sftp.c b/sftp.c >index b66037f1..8ec08d60 100644 >--- a/sftp.c >+++ b/sftp.c >@@ -220,9 +220,12 @@ static const struct CMD cmds[] = { > static void > killchild(int signo) > { >- if (sshpid > 1) { >- kill(sshpid, SIGTERM); >- waitpid(sshpid, NULL, 0); >+ pid_t pid; >+ >+ pid = sshpid; >+ if (pid > 1) { >+ kill(pid, SIGTERM); >+ waitpid(pid, NULL, 0); > } > > _exit(1);
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
Flags:
dtucker
:
ok+
Actions:
View
|
Diff
Attachments on
bug 3084
: 3337