mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-23 00:43:09 +02:00
using STDOUT_FILENO, remove tcsetpgrp
This commit is contained in:
parent
dd0709e1da
commit
bfe772b690
@ -499,8 +499,7 @@ void LinkApp::launch(const string &selectedFile, const string &selectedDir) {
|
|||||||
necessary, if SDL correctly restored terminal state after
|
necessary, if SDL correctly restored terminal state after
|
||||||
SDL_Quit(). */
|
SDL_Quit(). */
|
||||||
int pid = setsid();
|
int pid = setsid();
|
||||||
tcsetpgrp(1, pid);
|
ioctl(1, TIOCSCTTY, STDOUT_FILENO);
|
||||||
ioctl(1, TIOCSCTTY, (char *)1);
|
|
||||||
|
|
||||||
execlp("/bin/sh","/bin/sh","-c",command.c_str(),NULL);
|
execlp("/bin/sh","/bin/sh","-c",command.c_str(),NULL);
|
||||||
//if execution continues then something went wrong and as we already called SDL_Quit we cannot continue
|
//if execution continues then something went wrong and as we already called SDL_Quit we cannot continue
|
||||||
|
Loading…
Reference in New Issue
Block a user