Process-in-Process
 All Functions Groups Pages
Functions
Terminating PiP Task

Functions

void pip_exit (int status)
 terminate the calling PiP task More...
 
int pip_kill_all_tasks (void)
 kill all PiP tasks More...
 
void pip_abort (void)
 Kill all PiP tasks and then kill PiP root. More...
 

Detailed Description

Terminating PiP task

Description
Function to ternminate PiP task normally or abnormally (abort).

Function Documentation

void pip_exit ( int  status)
Name
pip_exit
Synopsis
#include <pip/pip.h>
void pip_exit( int status );
Description
When the main function or the start function of a PiP task returns with an integer value, then it has the same effect of calling pip_exit with the returned value.
Parameters
[in]statusThis status is returned to PiP root.
Note
This function can be used regardless to the PiP execution mode. exit(3) is called in the process mode and pthread_exit(3) is called in the pthread mode.
See Also
pip_wait
pip_trywait
pip_wait_any
pip_trywait_any
int pip_kill_all_tasks ( void  )
Name
pip_kill_all_tasks
Synopsis
#include <pip/pip.h>
int pip_kill_all_tasks( void );
Note
This function must be called from PiP root.
Returns
Return 0 on success. Return an error code on error.
Return values
EPERMThe PiP library is not initialized yet
EPERMNot called from root
void pip_abort ( void  )
Name
pip_abort
Synopsis
#include <pip/pip.h>
void pip_abort( void );