summaryrefslogtreecommitdiff
path: root/source4/lib/util/signal.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-02-28 13:12:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:52:09 -0500
commitaa04388943fe5d7d8c873a6ee8a4cc9af2491532 (patch)
tree8073b268875c22e8e0785ddffef42fcf3af3dac1 /source4/lib/util/signal.c
parent4d3cc7384338fe2182a2029c2e6d2fcca2ec8813 (diff)
downloadsamba-aa04388943fe5d7d8c873a6ee8a4cc9af2491532.tar.gz
samba-aa04388943fe5d7d8c873a6ee8a4cc9af2491532.tar.bz2
samba-aa04388943fe5d7d8c873a6ee8a4cc9af2491532.zip
r13752: Add doxyfile and fix formatting of comments. Current output is available at http://samba.org/~jelmer/util-api/
(This used to be commit 90812203df151a5e62394306827c72adfe13c63c)
Diffstat (limited to 'source4/lib/util/signal.c')
-rw-r--r--source4/lib/util/signal.c21
1 files changed, 13 insertions, 8 deletions
diff --git a/source4/lib/util/signal.c b/source4/lib/util/signal.c
index 6c0bb4007a..a0cb90dbf6 100644
--- a/source4/lib/util/signal.c
+++ b/source4/lib/util/signal.c
@@ -22,6 +22,11 @@
#include "includes.h"
#include "system/wait.h"
+/**
+ * @file
+ * @brief Signal handling
+ */
+
/****************************************************************************
Catch child exits and reap the child zombie status.
****************************************************************************/
@@ -61,9 +66,9 @@ static void sig_cld_leave_status(int signum)
#endif
}
-/*******************************************************************
+/**
Block sigs.
-********************************************************************/
+**/
void BlockSignals(BOOL block,int signum)
{
@@ -88,12 +93,12 @@ void BlockSignals(BOOL block,int signum)
#endif
}
-/*******************************************************************
+/**
Catch a signal. This should implement the following semantics:
1) The handler remains installed after being called.
2) The signal should be blocked during handler execution.
-********************************************************************/
+**/
void (*CatchSignal(int signum,void (*handler)(int )))(int)
{
@@ -121,18 +126,18 @@ void (*CatchSignal(int signum,void (*handler)(int )))(int)
#endif
}
-/*******************************************************************
+/**
Ignore SIGCLD via whatever means is necessary for this OS.
-********************************************************************/
+**/
void CatchChild(void)
{
CatchSignal(SIGCLD, sig_cld);
}
-/*******************************************************************
+/**
Catch SIGCLD but leave the child around so it's status can be reaped.
-********************************************************************/
+**/
void CatchChildLeaveStatus(void)
{