Skip to content

Commit 34c5dfc

Browse files
committed
Add sleep to command_line.sh process58 probe test.
1 parent a923e01 commit 34c5dfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/probes/process58/command_line.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ echo "stderr file: $stderr"
9090
CMDLINE_REGEX='/(\w+/)+bash.*stopped_process\.sh param1 param2 param3$'
9191

9292
# Run zombie process (without full cmdline)
93-
( SHELL_PID=$BASHPID && ( kill -STOP $SHELL_PID ) ) &
93+
( SHELL_PID=$BASHPID && ( kill -STOP $SHELL_PID && sleep 1 ) ) &
9494
ZOMBIE_PPID=$!
9595
ZOMBIE_PID=$(get_zombie_pid_from_ppid ${ZOMBIE_PPID})
9696
[ -n "${ZOMBIE_PPID}" ]

0 commit comments

Comments
 (0)