$NetBSD$

--- procs.c.orig	1999-12-01 19:16:21.000000000 -0700
+++ procs.c	2004-05-27 11:00:23.000000000 -0600
@@ -173,8 +173,8 @@
 
     (void) fflush(stdout);
     (void) fflush(stderr);
-    if (log)
-	(void) fflush(log);
+    if (logfile)
+	(void) fflush(logfile);
     if (errlog)
 	(void) fflush(errlog);
 
@@ -396,8 +396,8 @@
     (void) await_child();
     (void) fflush(stdout);
     (void) fflush(stderr);
-    if (log)
-	(void) fflush(log);
+    if (logfile)
+	(void) fflush(logfile);
     if (errlog)
 	(void) fflush(errlog);
 
