The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



Thread: tcl/expect
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 03-25-2008
ramen_noodle ramen_noodle is offline
Registered User
 

Join Date: Dec 2007
Location: Virginia, USA.
Posts: 251
Tcl version btwn 9 & 10? Are you using an expect binary or loading as a package?
The error message is pretty benevolent in theory. It's the same call as:

Code:
waitpid(-1,&status,WNOHANG);
If the child hasn't exited by the time you check for exit then this is the
message you will get. There is also the possibilty that you are simply calling
exec instead of fork and exec in which case behavior is random after the first
wait iirc.

Have you considered asynchronously handling SIGCHLD via trap as an experiment?
Reply With Quote