Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 155450 Details for
Bug 112975
allowed vsftp session hangs when tcp wrappers spawn is used
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch
tcp_wrappers-7.6-sigchld.patch (text/plain), 1.31 KB, created by
Tomas Janousek
on 2007-05-25 13:03:10 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Tomas Janousek
Created:
2007-05-25 13:03:10 UTC
Size:
1.31 KB
patch
obsolete
>--- tcp_wrappers_7.6/shell_cmd.c.sigchld 1994-12-28 17:42:44.000000000 +0100 >+++ tcp_wrappers_7.6/shell_cmd.c 2007-05-25 14:28:33.000000000 +0200 >@@ -31,6 +31,10 @@ > > static void do_child(); > >+/* Dummy handler */ >+ >+static void sigchld(int sig) {} >+ > /* shell_cmd - execute shell command */ > > void shell_cmd(command) >@@ -39,6 +43,22 @@ > int child_pid; > int wait_pid; > >+ struct sigaction new_action, old_action; >+ sigset_t new_mask, old_mask; >+ >+ new_action.sa_handler = &sigchld; >+ new_action.sa_flags = 0; >+ sigemptyset(&new_action.sa_mask); >+ sigemptyset(&new_mask); >+ sigaddset(&new_mask, SIGCHLD); >+ >+ /* >+ * Ignore the SIGCHLD signal a unblock it so that the program should not >+ * see it. >+ */ >+ sigaction(SIGCHLD, &new_action, &old_action); >+ sigprocmask(SIG_UNBLOCK, &new_mask, &old_mask); >+ > /* > * Most of the work is done within the child process, to minimize the > * risk of damage to the parent. >@@ -55,6 +75,12 @@ > while ((wait_pid = wait((int *) 0)) != -1 && wait_pid != child_pid) > /* void */ ; > } >+ >+ /* >+ * Revert the signal mask and the SIGCHLD handler. >+ */ >+ sigprocmask(SIG_SETMASK, &old_mask, 0); >+ sigaction(SIGCHLD, &old_action, 0); > } > > /* do_child - exec command with { stdin, stdout, stderr } to /dev/null */
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 112975
: 155450