From 7f5a12b03b46b140f7f324b20763a77df4eb94ea Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sat, 16 Feb 2019 18:20:33 +0100 Subject: Fix process startup: use execl, not execlp --- process.cpp | 4 ++-- 1 file 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); } -- cgit v1.2.3-70-g09d2