When i use multi process or multiple spawned, it have something wrong with this messege:
Cannot sync with child: Interrupted system call at /usr/share/perl5/Expect.pm line 132, <GEN1> line 2.
130 # now wait for child exec (eof due to close-on-exit) or exec error
131 my $errstatus = sysread(FROM_CHILD, $errno, 256);
132 die "Cannot sync with child: $!" if not defined $errstatus;
May be child fork too fast that FROM_CHILD not prepared.
I add a sleep before line 130, i have try this for several computer, every things is ok:
select(undef, undef, undef, 0.05);
expect version 1.20
debian lenny and centos 5
sorry for my bad English!
laiww@126.com
Yes, Expect should check for interrupted syscalls and restart them.