blob: 5bcae60ee5289ad59fc98d671608ab6244a0bb0a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- ./Wnn/jserver/de.c.org Thu Aug 18 18:31:23 1994
+++ ./Wnn/jserver/de.c Fri Feb 28 01:13:16 1997
@@ -264,7 +264,16 @@
fclose(stdin);
fclose(stdout);
if(!noisy){
+#ifndef __FreeBSD__
fclose(stderr);
+#else /* __FreeBSD__ */
+ int fd = open("/dev/null", O_WRONLY);
+ if (fd < 0) {
+ xerror("Cannot open /dev/null\n");
+ }
+ dup2(fd, 2);
+ close(fd);
+#endif /* __FreeBSD__ */
}
#if defined(hpux) || defined(SOLARIS)
|