#15 Interrupted system call

serious
open-accepted
Core (10)
5
2009-12-17
2009-12-17
Anonymous
No

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

Discussion

  • Roland Giersig

    Roland Giersig - 2009-12-17

    Yes, Expect should check for interrupted syscalls and restart them.

     
  • Roland Giersig

    Roland Giersig - 2009-12-17
    • labels: --> Core
    • milestone: --> serious
    • assigned_to: nobody --> rgiersig
    • status: open --> open-accepted
     

Log in to post a comment.