LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-13-2011, 03:30 PM   #1
billross
LQ Newbie
 
Registered: Apr 2011
Posts: 1

Rep: Reputation: 0
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
 
Old 04-14-2011, 06:08 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,609

Rep: Reputation: 702Reputation: 702Reputation: 702Reputation: 702Reputation: 702Reputation: 702Reputation: 702
Not sure about wait_pid. Have you tried:

Code:
 close -i $spawn_id
 wait -i $spawn_id
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Recover /lib/modules/2.6.18-120.el5-i686 directory shoestom Red Hat 3 03-20-2010 05:21 PM
2.6.9-5.EL-hugemem-i686, 2.6.9-5.EL-i686, 2.6.9-5.EL-smp-i686 , Which? arsham Linux - General 2 05-08-2005 12:21 AM
2.6.9-5.EL-hugemem-i686, 2.6.9-5.EL-i686, 2.6.9-5.EL-smp-i686 , Which? arsham Linux - Enterprise 1 05-07-2005 08:20 PM
i686 vs. i386 andzerger Linux - Distributions 1 02-22-2004 09:26 PM
is celeron 500 an i686 ? if so how to move from i386 to i686 raft Linux - Hardware 1 12-22-2003 07:58 AM


All times are GMT -5. The time now is 08:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration