renamed 'chcontext' to 'chcontext-compat'
[util-vserver.git] / util-vserver / ensc_wrappers / wrappers_handler.hc
index 663b2d0..e7370b4 100644 (file)
@@ -29,7 +29,15 @@ 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);
 }