aboutsummaryrefslogtreecommitdiff
path: root/util/fbrun/FbRun.cc
diff options
context:
space:
mode:
Diffstat (limited to 'util/fbrun/FbRun.cc')
-rw-r--r--util/fbrun/FbRun.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/fbrun/FbRun.cc b/util/fbrun/FbRun.cc
index da3ee6b..118b82d 100644
--- a/util/fbrun/FbRun.cc
+++ b/util/fbrun/FbRun.cc
@@ -117,7 +117,7 @@ void FbRun::run(const std::string &command) {
117 // fork and execute program 117 // fork and execute program
118 if (!fork()) { 118 if (!fork()) {
119 setsid(); 119 setsid();
120 execl("/bin/sh", "/bin/sh", "-c", command.c_str(), 0); 120 execl("/bin/sh", "/bin/sh", "-c", command.c_str(), static_cast<void*>(NULL));
121 exit(0); //exit child 121 exit(0); //exit child
122 } 122 }
123 123