1.1 --- a/libexec/lib/src/process_creating.cc Sun Mar 19 00:48:15 2023 +0100
1.2 +++ b/libexec/lib/src/process_creating.cc Sun Mar 19 00:49:19 2023 +0100
1.3 @@ -348,12 +348,14 @@
1.4
1.5 long ProcessCreating::start(int argc, const char *argv[], l4_cap_idx_t *process)
1.6 {
1.7 - file_t *file = client_open(argv[0], O_RDONLY);
1.8 - long err;
1.9 + std::lock_guard<std::mutex> guard(_lock);
1.10
1.11 /* Open the program file, handling any error conditions. If successfully
1.12 opened, it will be closed when the process terminates. */
1.13
1.14 + file_t *file = client_open(argv[0], O_RDONLY);
1.15 + long err;
1.16 +
1.17 if (file == NULL)
1.18 return -L4_EIO;
1.19