
Go to the source code of this file.
Data Types | |
| type | t_fd_pair |
| type | t_pf_pair |
Functions/Subroutines | |
| char * | run_shell (const char *pzCmd) |
| pid_t | proc2_fopen (t_pf_pair *p_pair, tCC **pp_args) |
| pid_t | proc2_open (t_fd_pair *p_pair, tCC **pp_args) |
| int | chain_open (int in_fd, tCC **pp_args, pid_t *p_child) |
| void | close_server (void) |
| int chain_open | ( | int | in_fd, | |
| tCC ** | pp_args, | |||
| pid_t * | p_child | |||
| ) |
Definition at line 68 of file procopen.c.
References close, def_args, dup2(), errno, execvp(), exit(), EXIT_PANIC, F_DUPFD, fcntl(), fork, fprintf(), getenv(), idx, NOPROCESS, NULL, NULLPROCESS, pipe(), printf(), t_fd_pair::read_fd, STDIN_FILENO, STDOUT_FILENO, tCC, t_fd_pair::write_fd, and xstrerror().
Referenced by proc2_open(), and start_fixer().
Definition at line 148 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.
Referenced by run_shell(), server_setup(), and sig_handler().
Definition at line 215 of file procopen.c.
References fdopen, NOPROCESS, t_pf_pair::pf_read, t_pf_pair::pf_write, proc2_open(), t_fd_pair::read_fd, and t_fd_pair::write_fd.
Referenced by run_shell().
Definition at line 188 of file procopen.c.
References chain_open(), close, NOPROCESS, and pipe().
Referenced by proc2_fopen().
| char* run_shell | ( | const char * | pzCmd | ) |
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.
1.5.6