ezmlmx 0.68
ezmlmx
Loading...
Searching...
No Matches
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
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}
int wrap_waitpid(int pid)
Error messages. If you translate these, I would urge you to keep the English version as well....
#define ERR_CHILD_UNKNOWN
Definition errtxt.h:108
#define ERR_CHILD_FATAL
Definition errtxt.h:106
#define ERR_CHILD_TEMP
Definition errtxt.h:107
void wrap_exitcode(int pid)
#define WHO
Definition author.c:1
int pid
Definition ezmlm-store.c:66
const char * logmsg(const char *dir, unsigned long num, unsigned long listno, unsigned long subs, int done)
Definition loginfo.c:32