[erlang-bugs] Inviso

Kostis Sagonas kostis@REDACTED
Sat May 29 20:41:25 CEST 2010


Some more confusion in inviso.

There is a record definition which reads:

   %% The loopdata record.
   -record(ld,{...
               session_state=passive,            % passive | tracing
	      ...}).

leading one to believe that this field is to be assigned the values 
'passive' or 'tracing'.  Yet, on line 844 there is an assignment:

            LD#ld{session_state=passive_sessionstate(),
                  nodes=NewNodesD,
                  ....

The problem is that the definition of passive_sessionstate/0 reads 
(comment is actually from the code - line 2962):

   %% Returns the correct value indicating that the tool is not tracing.
   passive_sessionstate() ->
       idle.

Does anybody know which are the values that this field can have?

Kostis


More information about the erlang-bugs mailing list