clarkwang/sexpect

[v2.3.4] issue with "-zombie-idle"

Closed this issue · 1 comments

The following scenario is supposed to print the defunct sleep process but with v2.3.4 it printed nothing.

sexpect sp -z-idle 5 sleep 5; pid=$( sexpect get -pid ); sleep 6; ps p $pid

Fixed in v2.3.5.

$ sexpect sp -z-idle 5 sleep 5; pid=$( sexpect get -pid ); sleep 6; ps p $pid
   PID TTY      STAT   TIME COMMAND
 74690 ?        Zs     0:00 [sleep] <defunct>

Test case added in commit 854ef20 .