diff --git a/daemons/lvmpolld/lvmpolld-core.c b/daemons/lvmpolld/lvmpolld-core.c index ede6fc2b6..ad6f5f76d 100644 --- a/daemons/lvmpolld/lvmpolld-core.c +++ b/daemons/lvmpolld/lvmpolld-core.c @@ -397,11 +397,11 @@ static void *fork_and_poll(void *args) if ((dup2(outfd, STDOUT_FILENO ) != STDOUT_FILENO) || (dup2(errfd, STDERR_FILENO ) != STDERR_FILENO)) - _exit(100); + _exit(LVMPD_RET_DUP_FAILED); execve(*(pdlv->cmdargv), (char *const *)pdlv->cmdargv, (char *const *)pdlv->cmdenvp); - _exit(101); + _exit(LVMPD_RET_EXC_FAILED); } else { /* parent */ if (r == -1) { diff --git a/daemons/lvmpolld/lvmpolld-protocol.h b/daemons/lvmpolld/lvmpolld-protocol.h index 7d9821b22..1f0d6a6ba 100644 --- a/daemons/lvmpolld/lvmpolld-protocol.h +++ b/daemons/lvmpolld/lvmpolld-protocol.h @@ -46,4 +46,7 @@ #define LVMPD_REAS_RETCODE "retcode" /* lvm cmd ret code */ #define LVMPD_REAS_SIGNAL "signal" /* lvm cmd terminating singal */ +#define LVMPD_RET_DUP_FAILED 100 +#define LVMPD_RET_EXC_FAILED 101 + #endif /* _LVM_LVMPOLLD_PROTOCOL_H */