summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--process.cpp4
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);
}