patch 7.4.1822
Problem:    Redirecting stdout of a channel to "null" doesn't work. (Nicola)
Solution:   Correct the file descriptor number.
diff --git a/src/os_unix.c b/src/os_unix.c
index f2f2ca4..f7b5ae4 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -5195,7 +5195,7 @@
 	/* set up stdout for the child */
 	if (use_null_for_out && null_fd >= 0)
 	{
-	    close(0);
+	    close(1);
 	    ignored = dup(null_fd);
 	}
 	else
@@ -5206,6 +5206,7 @@
 	    ignored = dup(fd_out[1]);
 	    close(fd_out[1]);
 	}
+
 	if (null_fd >= 0)
 	    close(null_fd);