l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2001 Dec 30 17:04

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: RE: [vox-tech] Good distro for beginner?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RE: [vox-tech] Good distro for beginner?

On Sat, 7 Apr 2001, Peter Jay Salzman wrote:

> On Sat 07 Apr 01, 10:44 AM, jdnewmil@dcn.davis.ca.us said: 
> > On Sat, 7 Apr 2001, Deja User wrote:
> > 
> > > I know this is vague, but a colleague of mine is vexed regarding a
> > > "init command is respawning too rapidly" error. Any ideas? If not,
> > > that's fine. I've seen this before also, but never found out what
> > > would cause this type of error. The question seems to be "too rapidly"
> > > for what? UA
> > 
> > Sounds like they put an ampersand at the end of an inittab line.  init
> > monitors the processes it starts, and the ampersand disonnects from the
> > invoked process immediately, and init thinks it needs to start it
> > again.  Voila! processes spawning like rabbits.
> jeff, shouldn't init only do this when it receives a SIGCHLD signal?

Gads, I knew a half-baked answer wouldn't cut it. :)

To spawn a new process, process A (running program "grandma"; aka "init")
forks, so there are two copies of grandma in processes A and B.  
Then B execs the new program which clears out the existing program in
process B, replacing it with program ma ("bash").  If program ma forks
into processes B and C (as "bash" will do if given an ampersand), and
C execs program "child" (getty), then there are three processes involved. 

At this point, program "ma" (bash) has done its job, so it exits, and
process A gets SIGCHLD, even though program "child" (getty) is still
running. Then "grandma" goes into action again.

If you DON'T use the ampersand, then process B running the shell will not
fork, and will simply replace itself with getty.

And so, the saga of Eve begetting mankind is echoed in Linux. :)

Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil@dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
Work:<JeffN@endecon.com>              Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...2k

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.