Supervisor shutdown

Gunilla Arendt gunilla@REDACTED
Tue Nov 25 14:22:31 CET 2003

Let me correct myself:

The supervisor documentation is correct. (The supervisor has no other
requirements on the start function for a child process than that
it creates and links to it as described.)

However the gen_server|fsm|event man pages are not.
It says "A gen_server started using start_link is linked to the
calling process, this function must be used if the gen_server is
included in a supervision tree." which gives the impression that
the only difference between start and start_link is the linking,
which it is not, as Ulf described.

These man pages have now been corrected.

Best regards, Gunilla

Gunilla Arendt wrote:
> Then the documentation is not correct, very sorry about that.
> Best regards, Gunilla
> Vlad Dumitrescu wrote:
> >
> > From: "Gunilla Arendt" <gunilla@REDACTED>
> > > No, the supervisor *is* required to call start_link!
> >
> > I don't mean to argue with the OTP team :-) but the supervisor docs say, when
> > describing children specifications:
> >
> > |StartFunc defines the function call used to start the child process. It should
> > be a
> > |module-function-arguments tuple {M,F,A} used as apply(M,F,A).
> > |
> > |The start function must create and link to the child process, and should return
> > |{ok,Child} or {ok,Child,Info} where Child is the pid of the child process and
> > Info an
> > |arbitrary term which is ignored by the supervisor.
> >
> > Vlad

_____Gunilla Arendt______________________________________________
EAB/UKH/KD Erlang/OTP Product Development
Gunilla.Arendt@REDACTED  +46-8-7275730  ecn 851 5730

More information about the erlang-questions mailing list