From 5a9ab9d3c2fc90596156badc88d67f87e3f04349 Mon Sep 17 00:00:00 2001 From: Satoshi Asami Date: Fri, 28 Feb 1997 09:24:51 +0000 Subject: 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 --- japanese/FreeWnn-lib/files/patch-ab | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 japanese/FreeWnn-lib/files/patch-ab (limited to 'japanese/FreeWnn-lib/files') diff --git a/japanese/FreeWnn-lib/files/patch-ab b/japanese/FreeWnn-lib/files/patch-ab new file mode 100644 index 000000000000..5bcae60ee528 --- /dev/null +++ b/japanese/FreeWnn-lib/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) -- cgit v1.2.3