Changeset View
Changeset View
Standalone View
Standalone View
contrib/tcp_wrappers/shell_cmd.c
Show All 30 Lines | |||||
#include "tcpd.h" | #include "tcpd.h" | ||||
/* Forward declarations. */ | /* Forward declarations. */ | ||||
static void do_child(char *command); | static void do_child(char *command); | ||||
/* shell_cmd - execute shell command */ | /* shell_cmd - execute shell command */ | ||||
void shell_cmd(command) | void shell_cmd(char *command) | ||||
char *command; | |||||
{ | { | ||||
int child_pid; | int child_pid; | ||||
int wait_pid; | int wait_pid; | ||||
/* | /* | ||||
* Most of the work is done within the child process, to minimize the | * Most of the work is done within the child process, to minimize the | ||||
* risk of damage to the parent. | * risk of damage to the parent. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |