projects
/
gapil.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Inserito un inizio di esempio dell'uso delle funzioni delle capabilities.
[gapil.git]
/
sources
/
SigHand.c
diff --git
a/sources/SigHand.c
b/sources/SigHand.c
index 3fb588a99458b1903cded34effa155f5159b6504..b5d6c7bda49de7c003e7cdf80bf2dd83b38212e6 100644
(file)
--- a/
sources/SigHand.c
+++ b/
sources/SigHand.c
@@
-22,7
+22,7
@@
*
* Author: S. Piccardi Dec. 2002
*
*
* Author: S. Piccardi Dec. 2002
*
- * $Id: SigHand.c,v 1.
6 2003/05/06 11:29:16
piccardi Exp $
+ * $Id: SigHand.c,v 1.
7 2003/05/06 14:05:12
piccardi Exp $
*
*****************************************************************************/
#include <errno.h> /* error simbol definitions */
*
*****************************************************************************/
#include <errno.h> /* error simbol definitions */
@@
-97,7
+97,7
@@
inline SigFunc * SignalRestart(int signo, SigFunc *func)
* Generic handler for SIGCHLD signal
*
* Simone Piccardi Dec. 2002
* Generic handler for SIGCHLD signal
*
* Simone Piccardi Dec. 2002
- * $Id: SigHand.c,v 1.
6 2003/05/06 11:29:16
piccardi Exp $
+ * $Id: SigHand.c,v 1.
7 2003/05/06 14:05:12
piccardi Exp $
*/
void HandSigCHLD(int sig)
{
*/
void HandSigCHLD(int sig)
{
@@
-110,10
+110,10
@@
void HandSigCHLD(int sig)
do {
errno = 0;
pid = waitpid(WAIT_ANY, &status, WNOHANG);
do {
errno = 0;
pid = waitpid(WAIT_ANY, &status, WNOHANG);
-
if (pid > 0) {
-
debug("child %d terminated with status %x\n", pid, status);
-
}
- } while (
(pid > 0) && (errno == EINTR)
);
+
//
if (pid > 0) {
+
//
debug("child %d terminated with status %x\n", pid, status);
+
//
}
+ } while (
pid > 0
);
/* restore errno value*/
errno = errno_save;
/* return */
/* restore errno value*/
errno = errno_save;
/* return */