use $(LIBENSCVECTOR) instead of libensc_vector.a
[util-vserver.git] / util-vserver / ensc_wrappers / wrappers_handler.hc
index 663b2d0..b89baf7 100644 (file)
@@ -29,13 +29,21 @@ FatalErrnoErrorFail(char const msg[])
 {
   extern int   wrapper_exit_code;
 
+#ifdef ENSC_WRAPPERS_PREFIX
+  {
+    int                old_errno = errno;
+    WRITE_MSG(2, ENSC_WRAPPERS_PREFIX);
+    errno = old_errno;
+  }
+#endif
   perror(msg);
+  
   exit(wrapper_exit_code);
 }
 
 static UNUSED void 
 FatalErrnoError(bool condition, char const msg[]) /*@*/
 {
-  if (!condition)       return;
+  if (__builtin_expect(!condition,true))       return;
   FatalErrnoErrorFail(msg);
 }