1.1 --- a/libfsclient/lib/src/process.cc Sun Jun 02 23:15:39 2024 +0200
1.2 +++ b/libfsclient/lib/src/process.cc Tue Jun 04 18:12:02 2024 +0200
1.3 @@ -101,23 +101,22 @@
1.4 /* A convenience function for creating and starting a process. */
1.5
1.6 long process_spawn(int argc, const char *argv[], file_t *reader,
1.7 - file_t *writer, process_t **process)
1.8 + file_t *writer, file_t *error, process_t **process)
1.9 {
1.10 *process = process_new();
1.11
1.12 /* Start the process with the given arguments. */
1.13
1.14 if (*process != NULL)
1.15 - return process_start(*process, argc, argv, reader, writer);
1.16 + return process_start(*process, argc, argv, reader, writer, error);
1.17 else
1.18 return -L4_ENOMEM;
1.19 }
1.20
1.21 -/* Start a process using the given arguments.
1.22 - NOTE: This does not yet employ a pipe for the process's input stream. */
1.23 +/* Start a process using the given arguments. */
1.24
1.25 long process_start(process_t *process, int argc, const char *argv[],
1.26 - file_t *reader, file_t *writer)
1.27 + file_t *reader, file_t *writer, file_t *error)
1.28 {
1.29 l4_cap_idx_t server = l4re_env_get_cap(ENV_PROCESS_SERVER_NAME);
1.30
1.31 @@ -151,6 +150,7 @@
1.32 err = creator.start(argc,
1.33 reader != NULL ? reader->ref : (l4_cap_idx_t) L4_INVALID_CAP,
1.34 writer != NULL ? writer->ref : (l4_cap_idx_t) L4_INVALID_CAP,
1.35 + error != NULL ? error->ref : (l4_cap_idx_t) L4_INVALID_CAP,
1.36 &process->ref);
1.37
1.38 /* Initialise the notifiable section of the structure. */