aboutsummaryrefslogtreecommitdiff
path: root/japanese/FreeWnn-server
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1997-02-28 09:24:51 +0000
committerSatoshi Asami <asami@FreeBSD.org>1997-02-28 09:24:51 +0000
commit5a9ab9d3c2fc90596156badc88d67f87e3f04349 (patch)
tree849597eadf3907683189352f16b23ab9875ba107 /japanese/FreeWnn-server
parenta32b65b01b79f5660a642091e1bb79a06f0a173c (diff)
downloadports-5a9ab9d3c2fc90596156badc88d67f87e3f04349.tar.gz
ports-5a9ab9d3c2fc90596156badc88d67f87e3f04349.zip
Make sure fd 2 won't be pointing to the dictionary file, so that
pkhmalloc()'s error messages don't end up there. Submitted by: Naoki Hamada <nao@sbl.cl.nec.co.jp>
Notes
Notes: svn path=/head/; revision=5772
Diffstat (limited to 'japanese/FreeWnn-server')
-rw-r--r--japanese/FreeWnn-server/files/patch-ab19
1 files changed, 19 insertions, 0 deletions
diff --git a/japanese/FreeWnn-server/files/patch-ab b/japanese/FreeWnn-server/files/patch-ab
new file mode 100644
index 000000000000..5bcae60ee528
--- /dev/null
+++ b/japanese/FreeWnn-server/files/patch-ab
@@ -0,0 +1,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)