blob: c383a5ea8754ae8648c92adafb9b99378dc2784d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$NetBSD: patch-ad,v 1.1 2001/10/18 08:04:26 tron Exp $
--- sendlib.c 2001/10/11 07:58:26 2.88
+++ sendlib.c 2001/10/17 16:22:48 2.89
@@ -1831,6 +1831,13 @@
if (dup (1) < 0)
_exit (S_ERR);
}
+ else
+ {
+ if (open ("/dev/null", O_WRONLY | O_APPEND) < 0) /* stdout */
+ _exit (S_ERR);
+ if (open ("/dev/null", O_RDWR | O_APPEND) < 0) /* stderr */
+ _exit (S_ERR);
+ }
execv (path, args);
_exit (S_ERR);
|