aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authormathias <mathias>2007-06-09 17:44:27 (GMT)
committermathias <mathias>2007-06-09 17:44:27 (GMT)
commit6f8a5c7a8dc4552105205c8c9f0d270703bcc271 (patch)
tree4ba221d8ff113a7a60c58e538f504fdcab331110 /util
parent222d8cd7e9c0f28b3dd0b9b253a0b096d856195f (diff)
downloadfluxbox-6f8a5c7a8dc4552105205c8c9f0d270703bcc271.zip
fluxbox-6f8a5c7a8dc4552105205c8c9f0d270703bcc271.tar.bz2
small fix for the /bin/sh issue .. just using /bin/zsh now
Diffstat (limited to 'util')
-rw-r--r--util/fbrun/FbRun.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/util/fbrun/FbRun.cc b/util/fbrun/FbRun.cc
index 95cb94d..908b3c2 100644
--- a/util/fbrun/FbRun.cc
+++ b/util/fbrun/FbRun.cc
@@ -124,10 +124,8 @@ void FbRun::run(const std::string &command) {
124 if (!shell) 124 if (!shell)
125 shell = "/bin/sh"; 125 shell = "/bin/sh";
126 126
127 std::string exec_cmd = "exec " + command;
128
129 setsid(); 127 setsid();
130 execl(shell, shell, "-c", exec_cmd.c_str(), static_cast<void*>(NULL)); 128 execl(shell, shell, "-c", command.c_str(), static_cast<void*>(NULL));
131 exit(0); //exit child 129 exit(0); //exit child
132 } 130 }
133 131