#include "fixlib.h"#include "server.h"

Go to the source code of this file.
Functions/Subroutines | |
| static char * | load_data (FILE *fp) |
| void | close_server (void) |
| static void | sig_handler (int signo ATTRIBUTE_UNUSED) |
| static void | server_setup (void) |
| static const char * | find_shell (void) |
| char * | run_shell (const char *pz_cmd) |
Variables | |
| STATIC enum t_bool | read_pipe_timeout |
| STATIC pid_t | server_master_pid = NOPROCESS |
| tSCC * | def_args [] |
| STATIC t_pf_pair | server_pair |
| STATIC pid_t | server_id = NULLPROCESS |
| tSCC | z_done [] = "ShElL-OuTpUt-HaS-bEeN-cOmPlEtEd" |
| tSCC * | p_cur_dir = (char *) NULL |
Definition at line 138 of file server.c.
References fclose(), getpid, kill, NOPROCESS, NULL, NULLPROCESS, t_pf_pair::pf_read, t_pf_pair::pf_write, server_id, server_master_pid, server_pair, and SIGKILL.
| static const char* find_shell | ( | void | ) | [static] |
| static char* load_data | ( | FILE * | fp | ) | [static] |
| char* run_shell | ( | const char * | pz_cmd | ) |
Definition at line 242 of file server.c.
References BOOL_FALSE, BOOL_TRUE, close_server(), def_args, fflush(), find_shell(), fprintf(), load_data(), NULL, NULLPROCESS, p_cur_dir, t_pf_pair::pf_read, t_pf_pair::pf_write, proc2_fopen(), server_id, server_pair, server_setup(), tSCC, xcalloc(), XCNEW, and z_done.
Definition at line 178 of file server.c.
References atexit(), close_server(), fflush(), fputs(), getcwd, getpid, MAXPATHLEN, p_cur_dir, t_pf_pair::pf_write, server_master_pid, server_pair, sig_handler(), SIGALRM, signal(), SIGPIPE, and xstrdup().
| static void sig_handler | ( | int signo | ATTRIBUTE_UNUSED | ) | [static] |
Definition at line 159 of file server.c.
References BOOL_TRUE, close_server(), fprintf(), read_pipe_timeout, server_id, and SIGPIPE.
| tSCC* def_args[] |
| STATIC enum t_bool read_pipe_timeout |
| STATIC pid_t server_master_pid = NOPROCESS |
| STATIC t_pf_pair server_pair |
1.5.6