#include <stdbool.h>
#include <time.h>
#include <unistd.h>
#include "mini_printf.h"
#include "arguments.h"
#include "epifetch.h"
Go to the source code of this file.
◆ data_t
env contains a linked list of the env env_array is the same an env but instead of a linked list is an array home contains the home directory of user status contains the exit code of the last command
◆ env_node_t
◆ redirection_t
◆ run_command_t
◆ redirection_s
Enumerator |
---|
NONE | |
PIPE | |
SEMICOLON | |
L_REDIRECT_OW | |
L_REDIRECT_AP | |
R_REDIRECT_OW | |
R_REDIRECT_AP | |
◆ wait_child()
void wait_child |
( |
int | cpid, |
|
|
data_t * | data ) |
This function waits for the executed command to finish and prints any error that could have happened also it will save its exit status code on data->status
- Parameters
-
cpid | Child process id |
data | Global data structure |