451
451
<p><c><![CDATA[port]]></c> is the local name to register, and should be the
452
452
same as the port number that was previously bound to the socket.</p>
453
453
<p>To unregister with epmd, simply close the returned
454
descriptor. See also <c><![CDATA[erl_unpublish()]]></c>.
456
456
<p>On success, the functions return a descriptor connecting the
457
457
calling process to epmd. On failure, they return -1 and set
509
509
<name><ret>int</ret><nametext>erl_unpublish(alive)</nametext></name>
510
<fsummary>Unpublish a node name</fsummary>
510
<fsummary>Forcefully unpublish a node name</fsummary>
512
512
<v>char *alive;</v>
515
<p>This function can be called by a process to unregister a
516
specified node name from epmd on the localhost. This may be
517
useful, for example, when epmd has not detected the failure of a
518
node, and will not allow the name to be reused. If you use this
519
function to unregister your own process, be sure to also close
520
the descriptor that was returned by <c><![CDATA[erl_publish()]]></c>.</p>
522
<p>Careless use of this function may have unpredictable
523
results, if the registered node is in fact still running.</p>
515
<p>This function can be called by a process to unregister a
516
specified node from epmd on the localhost. This is however usually not
517
allowed, unless epmd was started with the -relaxed_command_check
518
flag, which it normally isn't.</p>
520
<p>To unregister a node you have published, you should instead
521
close the descriptor that was returned by
522
<c><![CDATA[ei_publish()]]></c>.</p>
525
<p>This function is deprecated and will be removed in a future
525
528
<p><c><![CDATA[alive]]></c> is the name of the node to unregister, i.e., the
526
529
first component of the nodename, without the <c><![CDATA[@hostname]]></c>.</p>
527
530
<p>If the node was successfully unregistered from epmd, the