Skip to content

Commit

Permalink
execvpe isn't officially async-signal-safe!
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanGriffiths committed Sep 11, 2024
1 parent cb8a9fe commit 71542db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/miral/launch_app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ auto miral::launch_app_env(
sigfillset(&all_signals);
pthread_sigmask(SIG_UNBLOCK, &all_signals, nullptr);

// execvpe() isn't listed as being async-signal-safe, but the implementation looks fine and rewriting seems unnecessary
execvpe(exec_args[0], const_cast<char*const*>(exec_args.data()), const_cast<char*const*>(exec_env.data()));

mir::log_warning("Failed to execute client (\"%s\") error: %s", exec_args[0], strerror(errno));
Expand Down

0 comments on commit 71542db

Please sign in to comment.