From 7a69881cc1aabbbb836374ade04bfd7f228dffd7 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Wed, 30 Mar 2022 19:48:03 -0500 Subject: [PATCH] Update: Add child integer to fll_program_data_t. A few of the programs practice returning the child return status or the child process id. Make this behavio standard by adding child to the fll_program_data_t. --- level_2/fll_program/c/program/common.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/level_2/fll_program/c/program/common.h b/level_2/fll_program/c/program/common.h index 18cbf63..5733e5f 100644 --- a/level_2/fll_program/c/program/common.h +++ b/level_2/fll_program/c/program/common.h @@ -34,6 +34,7 @@ extern "C" { * * parameters: The state of pre-defined parameters passed to the program. * process_pipe: Designate whether or not to process the input pipe. + * child: Reserved for a child process, often representing the child return status or the child process ID. * output: The output file for general printing. * error: The output file for error printing. * warning: The output file for warning printing. @@ -47,6 +48,7 @@ extern "C" { uint16_t signal_check; bool process_pipe; + int child; fl_print_t output; fl_print_t error; @@ -61,6 +63,7 @@ extern "C" { { \ f_console_parameters_t_initialize, \ 0, \ + 0, \ F_false, \ fl_print_t_initialize, \ macro_fl_print_t_initialize_error(), \ -- 1.8.3.1