From cfab32367c733a4a61f3f801c521ac7b4b794e58 Mon Sep 17 00:00:00 2001 From: onefang Date: Wed, 4 Aug 2021 15:05:34 +1000 Subject: Stop printing "mono" when we check if a sim is running. --- src/sledjchisl/sledjchisl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sledjchisl') diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 58c6a8d..92b5f30 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c @@ -1410,7 +1410,7 @@ int checkSimIsRunning(char *sim) // I'd rather re-use the toysh command running stuff, since ps is a toy, but that's private. // TODO - switch to toybox ps and rm. free(path); - path = xmprintf("ps -p %s --no-headers -o comm", pid); + path = xmprintf("ps -p %s --no-headers -o comm >/dev/null", pid); i = system(path); if (WIFEXITED(i)) { -- cgit v1.1