aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/FreeWnn-server
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1997-02-28 17:24:51 +0800
committerasami <asami@FreeBSD.org>1997-02-28 17:24:51 +0800
commite624b61eb7f56e9a6615e3bca93cd2a20f0824e7 (patch)
tree46b4e9ed193bad38e88cf8c20ff3cc0bc6d8eb9d /japanese/FreeWnn-server
parentc8cedc6132bf7149ab8cc48d24e465de7cc72f2d (diff)
downloadfreebsd-ports-gnome-e624b61eb7f56e9a6615e3bca93cd2a20f0824e7.tar.gz
freebsd-ports-gnome-e624b61eb7f56e9a6615e3bca93cd2a20f0824e7.tar.zst
freebsd-ports-gnome-e624b61eb7f56e9a6615e3bca93cd2a20f0824e7.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>
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)