Make sure that the output pipes (output buffers) are flushed before closing.
const f_status_t status = byte_dump_main(arguments, &data);
+ // flush output pipes before closing.
+ fflush(f_type_output);
+ fflush(f_type_error);
+
// close all open file descriptors.
close(f_type_descriptor_output);
close(f_type_descriptor_input);
const f_status_t status = control_main(arguments, &data);
+ // flush output pipes before closing.
+ fflush(f_type_output);
+ fflush(f_type_error);
+
// close all open file descriptors.
close(f_type_descriptor_output);
close(f_type_descriptor_input);
const f_status_t status = controller_main(arguments, &data);
+ // flush output pipes before closing.
+ fflush(f_type_output);
+ fflush(f_type_error);
+
// close all open file descriptors.
close(f_type_descriptor_output);
close(f_type_descriptor_input);
f_signal_close(&data.signal);
+ // flush output pipes before closing.
+ fflush(f_type_output);
+ fflush(f_type_error);
+
// close all open file descriptors.
close(f_type_descriptor_output);
close(f_type_descriptor_input);
const f_status_t status = fss_basic_list_read_main(arguments, &data);
+ // flush output pipes before closing.
+ fflush(f_type_output);
+ fflush(f_type_error);
+
// close all open file descriptors.
close(f_type_descriptor_output);
close(f_type_descriptor_input);
const f_status_t status = fss_basic_list_write_main(arguments, &data);
+ // flush output pipes before closing.
+ fflush(f_type_output);
+ fflush(f_type_error);
+
// close all open file descriptors.
close(f_type_descriptor_output);
close(f_type_descriptor_input);
const f_status_t status = fss_basic_read_main(arguments, &data);
+ // flush output pipes before closing.
+ fflush(f_type_output);
+ fflush(f_type_error);
+
// close all open file descriptors.
close(f_type_descriptor_output);
close(f_type_descriptor_input);
const f_status_t status = fss_basic_write_main(arguments, &data);
+ // flush output pipes before closing.
+ fflush(f_type_output);
+ fflush(f_type_error);
+
// close all open file descriptors.
close(f_type_descriptor_output);
close(f_type_descriptor_input);
const f_status_t status = fss_embedded_list_read_main(arguments, &data);
+ // flush output pipes before closing.
+ fflush(f_type_output);
+ fflush(f_type_error);
+
// close all open file descriptors.
close(f_type_descriptor_output);
close(f_type_descriptor_input);
const f_status_t status = fss_embedded_list_write_main(arguments, &data);
+ // flush output pipes before closing.
+ fflush(f_type_output);
+ fflush(f_type_error);
+
// close all open file descriptors.
close(f_type_descriptor_output);
close(f_type_descriptor_input);
const f_status_t status = fss_extended_list_read_main(arguments, &data);
+ // flush output pipes before closing.
+ fflush(f_type_output);
+ fflush(f_type_error);
+
// close all open file descriptors.
close(f_type_descriptor_output);
close(f_type_descriptor_input);
const f_status_t status = fss_extended_list_write_main(arguments, &data);
+ // flush output pipes before closing.
+ fflush(f_type_output);
+ fflush(f_type_error);
+
// close all open file descriptors.
close(f_type_descriptor_output);
close(f_type_descriptor_input);
const f_status_t status = fss_extended_read_main(arguments, &data);
+ // flush output pipes before closing.
+ fflush(f_type_output);
+ fflush(f_type_error);
+
// close all open file descriptors.
close(f_type_descriptor_output);
close(f_type_descriptor_input);
const f_status_t status = fss_extended_write_main(arguments, &data);
+ // flush output pipes before closing.
+ fflush(f_type_output);
+ fflush(f_type_error);
+
// close all open file descriptors.
close(f_type_descriptor_output);
close(f_type_descriptor_input);
const f_status_t status = fss_status_code_main(arguments, &data);
+ // flush output pipes before closing.
+ fflush(f_type_output);
+ fflush(f_type_error);
+
// close all open file descriptors.
close(f_type_descriptor_output);
close(f_type_descriptor_input);
const f_status_t status = iki_read_main(arguments, &data);
+ // flush output pipes before closing.
+ fflush(f_type_output);
+ fflush(f_type_error);
+
// close all open file descriptors.
close(f_type_descriptor_output);
close(f_type_descriptor_input);
const f_status_t status = iki_write_main(arguments, &data);
+ // flush output pipes before closing.
+ fflush(f_type_output);
+ fflush(f_type_error);
+
// close all open file descriptors.
close(f_type_descriptor_output);
close(f_type_descriptor_input);
f_signal_close(&data.signal);
+ // flush output pipes before closing.
+ fflush(f_type_output);
+ fflush(f_type_error);
+
// close all open file descriptors.
close(f_type_descriptor_output);
close(f_type_descriptor_input);
const f_status_t status = status_code_main(arguments, &data);
+ // flush output pipes before closing.
+ fflush(f_type_output);
+ fflush(f_type_error);
+
// close all open file descriptors.
close(f_type_descriptor_output);
close(f_type_descriptor_input);