pbs_terminate (3) - Linux Man Pages
pbs_terminate: terminate a pbs batch server
pbs_terminate - terminate a pbs batch server
int pbs_terminate(int connect, int manner, char
DESCRIPTIONIssue a batch request to shut down a batch server. This request requires the privilege level usually reserved for batch operators and administrators.
A Server Shutdown batch request is generated and sent to the server over the connection specified by which is the return value of pbs_connect().
specifies the manner in which the server is shut down.
The available manners are defined in pbs_ifl.h as:
The server will not respond to the batch request until the server has completed its termination procedure.
The parameter, is reserved for implementation defined extensions.
DIAGNOSTICSWhen the batch request generated by pbs_terminate() function has been completed successfully by a batch server, the routine will return 0 (zero). Otherwise, a non zero error is returned. The error number is also set in pbs_errno.