bproc_nodehalt

Name

bproc_nodehalt -- ask a slave daemon to halt the machine

Synopsis

#include <sys/bproc.h>

int bproc_nodehalt( int node );

Description

bproc_nodehalt asks a slave daemon to halt itself.

Return value

On success, zero is returned. On error, -1 is returned and errno is set appropriately.

Errors

EPERM

The calling process does not have permission to move to node. You must be the superuser to use bproc_nodehalt.

EINVAL

node is an invalid node number or node is down.

EBUSY

The BProc system is not running.

See Also

bproc_nodereboot(2), bproc_nodepwroff(2)