mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-30 21:49:25 +00:00
20 lines
455 B
Plaintext
20 lines
455 B
Plaintext
|
--- ./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)
|