chiark / gitweb /
Newline after show's full stop
[innduct.git] / help.c
diff --git a/help.c b/help.c
index 34b1018661ab7f29dee8d4711ed40ce42d98c5b5..8a47c3f4c16e2d0bacc8206ada933ae91d3e7c3b 100644 (file)
--- a/help.c
+++ b/help.c
@@ -127,12 +127,15 @@ void xclose_perhaps(int *fd, const char *what, const char *what2) {
   *fd=0;
 }
 
-pid_t xfork(const char *what) {
-  pid_t child;
-
-  child= fork();
+pid_t xfork_bare(const char *what) {
+  pid_t child= fork();
   if (child==-1) sysdie("cannot fork for %s",what);
   dbg("forked %s %ld", what, (unsigned long)child);
+  return child;
+}
+
+pid_t xfork(const char *what) {
+  pid_t child= xfork_bare(what);
   if (!child) postfork();
   return child;
 }