2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.

 

Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

c6/pcsync_sig.c File Reference


Detailed Description

Synchronize processes with signals [Sec. 6.2, 9.2.3 (not in book)].

Definition in file pcsync_sig.c.

Go to the source code of this file.

Defines

#define NO_OPx

Functions

void signal_handler_child (int signo)
bool pcsync_init (struct pcsync *p)
bool pcsync_wait_for_parent (struct pcsync *p)
bool pcsync_unblock_children (struct pcsync *p, int children, pid_t *pid_child)
bool pcsync_end (struct pcsync *p)


Define Documentation

#define NO_OPx
 

Definition at line 24 of file pcsync_sig.c.


Function Documentation

bool pcsync_end struct pcsync p  ) 
 

Definition at line 95 of file pcsync_sig.c.

References close(), pcsync::fdcp, and pcsync::fdpc.

bool pcsync_init struct pcsync p  ) 
 

Definition at line 38 of file pcsync_sig.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_neg1, pcsync::fdcp, pcsync::fdpc, pcsync::old_set, pipe(), set(), sigaddset(), sigemptyset(), and sigprocmask().

bool pcsync_unblock_children struct pcsync p,
int  children,
pid_t *  pid_child
 

Definition at line 78 of file pcsync_sig.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FAIL, ec_neg1, errno, pcsync::fdcp, pcsync::fdpc, kill(), pcsync::old_set, read(), sigprocmask(), and write().

bool pcsync_wait_for_parent struct pcsync p  ) 
 

Definition at line 54 of file pcsync_sig.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FAIL, ec_neg1, errno, FD_SET(), FD_ZERO(), pcsync::fdcp, pcsync::fdpc, pcsync::old_set, sigaction::sa_handler, select(), sigaction(), sigdelset(), sigfillset(), signal_handler_child(), sigprocmask(), sigsuspend(), and write().

void signal_handler_child int  signo  )  [static]
 

Definition at line 34 of file pcsync_sig.c.

Referenced by pcsync_wait_for_parent().


Generated on Fri Apr 23 10:57:08 2004 for AUP2 Example Source by doxygen 1.3.1