Hi all,
I got a Resource Manager (RM) that starts up new processes when it gets a
message to do so.
My trouble is as follows.
The first time a send a message to the RM to start up a new process the
thing works properly.
After that point if a new message is catched by the RM to start up antoher
process the thing fails.
The RM works forever if the messages catched do not start up a new process.
The function I’m using to start up a process is either
spawnl(P_NOWAITO,…) or
spawnl(P_NOWAIT,…)
The error message I got from a 2ond spawnl on is
memory fault (core dumped)
An important thing to point out is that the 1st process has already ended
when a new
message to start up another process is catched by the RM. So that, it’s not
that of I got
not enough available memory because of the 1st process is still running
So my question is, how can I start up processes indefinetly?
What am I forgetting to free memory after the 1st process has ended?
Cheers
JcD
\
He may look like an idiot and talk like an idiot but
don’t let that fool you. He really is an idiot.
(Groucho Marx)
Juan Carlos Diaz y Carballo
School of Computer Science, Room 331
University of St Andrews, North Haugh
St Andrews, Fife, KY16 9SS
SCOTLAND - U.K.