Skip to content

Commit 2ad46da

Browse files
committed
system instead of pclose
1 parent 0caa4a6 commit 2ad46da

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/launcher.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@ void Launcher::exec()
3535
FILE *fp;
3636

3737
/* Start audio amp */
38-
fp = popen(SHELL_CMD_TURN_AMPLI_ON, "r");
39-
if (fp != NULL) {
40-
pclose(fp);
41-
}
38+
system(SHELL_CMD_TURN_AMPLI_ON);
4239

4340
if (consoleApp) {
4441
#ifdef BIND_CONSOLE

0 commit comments

Comments
 (0)