X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fensc_wrappers%2Fwrappers_handler.hc;h=663b2d06332018a5381cf315ef755b2ae72791f0;hb=c4cfd24d17cb9c3bb053ec46a0d335853d9a464e;hp=7f7ca442a443d105f968af2810f79403aa8d737f;hpb=8d9cbd61ebf24c6800e781a723d4e8da1a5f0cd0;p=util-vserver.git diff --git a/util-vserver/ensc_wrappers/wrappers_handler.hc b/util-vserver/ensc_wrappers/wrappers_handler.hc index 7f7ca44..663b2d0 100644 --- a/util-vserver/ensc_wrappers/wrappers_handler.hc +++ b/util-vserver/ensc_wrappers/wrappers_handler.hc @@ -24,13 +24,18 @@ #include #include -static UNUSED void -FatalErrnoError(bool condition, char const msg[]) /*@*/ +static inline ALWAYSINLINE NORETURN void +FatalErrnoErrorFail(char const msg[]) { extern int wrapper_exit_code; - if (!condition) return; perror(msg); - exit(wrapper_exit_code); } + +static UNUSED void +FatalErrnoError(bool condition, char const msg[]) /*@*/ +{ + if (!condition) return; + FatalErrnoErrorFail(msg); +}