about summary refs log tree commit diff
path: root/support/xfork.c
diff options
context:
space:
mode:
Diffstat (limited to 'support/xfork.c')
-rw-r--r--support/xfork.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/support/xfork.c b/support/xfork.c
index 4b2ce915e9..6a2d9ccbdc 100644
--- a/support/xfork.c
+++ b/support/xfork.c
@@ -20,15 +20,13 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <support/check.h>
 
 pid_t
 xfork (void)
 {
   pid_t result = fork ();
   if (result < 0)
-    {
-      printf ("error: fork: %m\n");
-      exit (1);
-    }
+    FAIL_EXIT1 ("fork: %m");
   return result;
 }