Skip to content

Commit 8a76223

Browse files
authored
Fix init value of count in _count_child_pids (#126)
1 parent 05d38eb commit 8a76223

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function _count_child_pids(pid = getpid())
1414
# because it's spawned by the current process, in that case we subtract
1515
# one to always exclude it, otherwise if we're getting the number of
1616
# children of another process we start from 0.
17-
count = pid == getpid() : -1 : 0
17+
count = pid == getpid() ? -1 : 0
1818
for line in lines
1919
m = match(r" *(\d+) +(\d+)", line)
2020
if !isnothing(m)

0 commit comments

Comments
 (0)