no badarg thrown by spawned process - quiet ext
Ulf Wiger
etxuwig@REDACTED
Fri Apr 19 14:11:44 CEST 2002
On Fri, 19 Apr 2002, Sameer Pendse wrote:
>i am using r8b-1 on win2k.
>
>in a spawned process, if i do a io:format("...~w",L) where L is
>a list, then my spawned process exits without a badarg error. if
>i put the L in a [L], it works fine. if i do the badop in a
>top-level process, i do get the badarg error.
Uhh, the second argument to io:format/2 is supposed to be a list.
Thus, io:format("...~w", [L]) is the correct form.
If your process was created with spawn/3, och spawn_link/3, you
will not get any SASL crash report. If you instead use
proc_lib:spawn[_link]/3, you will get a crash report when the
process dies.
/Uffe
More information about the erlang-questions
mailing list