Skip to content
Snippets Groups Projects
Unverified Commit 7f0754cf authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #8794 from iMichka/test

test: make pgrep call portable
parents 41ade40c 0222a834
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ rescue Exception => e # rubocop:disable Lint/RescueException
error_pipe.close
ensure
pid = Process.pid.to_s
if which("pgrep") && which("pkill") && system("pgrep", "-P", pid, out: :close)
if which("pgrep") && which("pkill") && system("pgrep", "-P", pid, out: File::NULL)
$stderr.puts "Killing child processes..."
system "pkill", "-P", pid
sleep 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment