MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ng_rmnode_self

Function ng_rmnode_self

lib/ff_ng_base.c:1610–1623  ·  view source on GitHub ↗

Shut this node down as soon as everyone is clear of it */ Should add arg "immediately" to jump the queue */

Source from the content-addressed store, hash-verified

1608/* Shut this node down as soon as everyone is clear of it */
1609/* Should add arg "immediately" to jump the queue */
1610int
1611ng_rmnode_self(node_p node)
1612{
1613 int error;
1614
1615 if (node == &ng_deadnode)
1616 return (0);
1617 node->nd_flags |= NGF_INVALID;
1618 if (node->nd_flags & NGF_CLOSING)
1619 return (0);
1620
1621 error = ng_send_fn(node, NULL, &ng_rmnode, NULL, 0);
1622 return (error);
1623}
1624
1625static void
1626ng_rmhook_part2(node_p node, hook_p hook, void *arg1, int arg2)

Callers

nothing calls this directly

Calls 1

ng_send_fnFunction · 0.70

Tested by

no test coverage detected