all repos — openbox @ 728022e170bf7f0ccc20101cc53587dfcd853ee5

openbox fork - make it a bit more like ryudo

exec stuff with "exec " so the sh isnt left over in memory for each process
Dana Jansens danakj@orodu.net
commit

728022e170bf7f0ccc20101cc53587dfcd853ee5

parent

df7120d5ff0942dcae5a20bed79052e7be9bc1d1

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M util/epist/screen.ccutil/epist/screen.cc

@@ -408,10 +408,11 @@ pid_t pid;

if ((pid = fork()) == 0) { extern char **environ; + string c = "exec " + cmd; char *const argv[] = { "sh", "-c", - const_cast<char *>(cmd.c_str()), + const_cast<char *>(c.c_str()), 0 }; // make the command run on the correct screen