diff options
author | tomsmeding <tom.smeding@gmail.com> | 2019-02-16 18:20:33 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2019-02-16 18:20:33 +0100 |
commit | 7f5a12b03b46b140f7f324b20763a77df4eb94ea (patch) | |
tree | 4ebd489b7ce50a325f207a41216818abd942429f | |
parent | 1154c8605a5c42a651bac5e2f74839062d352b9e (diff) |
Fix process startup: use execl, not execlp
-rw-r--r-- | process.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/process.cpp b/process.cpp index 061737e..6f1ec92 100644 --- a/process.cpp +++ b/process.cpp @@ -57,8 +57,8 @@ void Process::run() { close(child_in); close(child_out); - execlp(execname.data(), execname.data(), NULL); - cout << endl << "ERROR: Error executing player file '" << execname << "'" << endl; + execl(execname.data(), execname.data(), NULL); + cerr << endl << "ERROR: Error executing player file '" << execname << "'" << endl; exit(255); } |