Skip to content

Commit d12910b

Browse files
committed
Replace the non-standard function syntax in pidkiller(), remove the
non-POSIX disown usage, and quote variables passed to test and kill. These changes address ShellCheck warnings without changing the current runtime flow or behavior. Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
1 parent 96feafd commit d12910b

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

Runner/utils/platform.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ else
1515
SHELL_CMD=bash
1616
fi
1717

18-
function pidkiller()
18+
pidkiller()
1919
{
20-
if [ $ANDROID -eq 0 ]; then
21-
disown $1
22-
fi
23-
kill -9 $1 >/dev/null 2>&1
20+
kill -9 "$1" >/dev/null 2>&1
2421
}

0 commit comments

Comments
 (0)