ezmlmx
0.68
ezmlmx
Loading...
Searching...
No Matches
ezmlmx-0.68
src
wrap_exitcode.c
Go to the documentation of this file.
1
#include "
errtxt.h
"
2
#include "
wrap.h
"
3
#include "
idx.h
"
4
#include "logmsg.h"
5
6
#define WHO "wrap_exitcode"
7
13
14
void
wrap_exitcode
(
int
pid
)
15
{
16
switch
(
wrap_waitpid
(
pid
)) {
17
case
100:
logmsg
(
WHO
,100,FATAL,
ERR_CHILD_FATAL
);
18
case
111:
logmsg
(
WHO
,111,FATAL,
ERR_CHILD_TEMP
);
19
case
0:
break
;
20
default
:
logmsg
(
WHO
,111,FATAL,
ERR_CHILD_UNKNOWN
);
21
}
22
}
idx.h
wrap.h
wrap_waitpid
int wrap_waitpid(int pid)
Definition
wrap_waitpid.c:15
errtxt.h
Error messages. If you translate these, I would urge you to keep the English version as well....
ERR_CHILD_UNKNOWN
#define ERR_CHILD_UNKNOWN
Definition
errtxt.h:108
ERR_CHILD_FATAL
#define ERR_CHILD_FATAL
Definition
errtxt.h:106
ERR_CHILD_TEMP
#define ERR_CHILD_TEMP
Definition
errtxt.h:107
wrap_exitcode
void wrap_exitcode(int pid)
Definition
wrap_exitcode.c:14
WHO
#define WHO
Definition
author.c:1
pid
int pid
Definition
ezmlm-store.c:66
logmsg
const char * logmsg(const char *dir, unsigned long num, unsigned long listno, unsigned long subs, int done)
Definition
loginfo.c:32
Generated on
for ezmlmx by
1.14.0