no waitpid command on 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:21 EST 2007 i686 i686 i386
I am running tcl/expect on linux 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:21 EST 2007 i686 i686 i386 GNU/Linux. I am using expect to spawn a program. When the child process is done I can close the expect spawn_id. The process goes into "defunct". I got an error "fork: resource temporarily unavailable" after doing over 32000 of these. I am guessing I need to eliminate the zombies. I am hoping that waitpid would work. My build does not contain a waitpid command. How can I get this command added to the build?
I added the wait -i $spawn_id and it gets rid of the defunct processes.
I will run again to verify that I no longer have the 32000 limit.
It would still be nive to know how to add utility commands into linux.
Last edited by billross; 04-15-2011 at 12:16 PM.
Reason: more information