pri queue manager/attached .erl file - spawned process exiting
Fri Apr 19 17:36:22 CEST 2002
The start function has some problems:
QmPid = spawn(qm,qm,[L]).
The first argument to spawn should be the module name,
in this case 'qmpri'. The QmPid variable assignment
does noting here as it is lost as soon as the function
Change it to:
Now you get a process running as you see here:
Erlang (BEAM) emulator version 5.1.1 [source]
Eshell V5.1.1 (abort with ^G)
3> i(0, 33, 0).
On Fri, Apr 19, 2002 at 07:51:30PM +0530, Sameer Pendse wrote:
} i have attached qmpri.erl which implements priority message processing using
} time-outs. same problem here is that the spawned process exits/dies quietly,
} pman seems to indicate a badarg situation - but that is not getting thrown
} to console.
} 1. c(qmpri).
} 2. Qm=qmpri:start([1,2,3,4]).
} 3. qmpri:testdeq(Qm). % this just waits because pid=Qm has vanished
} can you advise on why qmpri:qm/1 is quitting out of infinite recursion in
} the absence of a stop message?
More information about the erlang-questions