next up previous contents
Next: ddu_fifo_exist Up: User Routines Previous: ddu_get_free_buffers

ddu_set_protection

Usage: int ddu_set_protection(prot_flag);
Returns: 0 if good status, -1 if bad status.
A demon process (garbage demon) checks in regular intervals, whether there are processes that are clobbering the system (more precisely whether there are fifos that are full but never read out). If such a fifo is found, then the fifo is deactivated and a signal HUP is sent to the process (which probably has already died).
By default the fifo is not protected against this checking mechanism. ddu_set_protection allows to change the default behaviour.

 
 prot_flag  		  FIFO_PROTECTED  		 fifo will under no circumstance be removed

FIFO_UNPROTECTED fifo will be removed (default).



Online software development
Thu Mar 14 10:35:53 EST 1996