Process alive ?

Vance Shipley vances@REDACTED
Tue Dec 17 00:56:53 CET 2002


You can use erlang:process_info/1.

1> Pid = self().
<0.25.0>
2> process_info(Pid).
[{current_function,{erl_eval,expr,3}},
 {initial_call,{shell,evaluator,3}},
 {status,running},
 {message_queue_len,0},
 {messages,[]},
 {links,[<0.22.0>]},
 {dictionary,[]},
 {trap_exit,false},
 {error_handler,error_handler},
 {priority,normal},
 {group_leader,<0.21.0>},
 {heap_size,233},
 {stack_size,13},
 {reductions,89},
 {garbage_collection,[{fullsweep_after,65535}]}]
3> banf = bang.
** exited: {{badmatch,bang},[{erl_eval,expr,3}]} **
4> self().
<0.34.0>
5> process_info(Pid).
undefined

On Tue, Dec 17, 2002 at 08:40:27PM +0100, Inswitch Solutions - Erlang Evaluation wrote:
}  
}  Does anyone know how can I check if a process running in a node is alive ?
}  
}  Thanks,
}  Bernardo Paroli 
}  INSwitch Solutions
}  
}  
}  



More information about the erlang-questions mailing list