diff options
author | Satoshi Asami <asami@FreeBSD.org> | 1997-02-28 09:24:51 +0000 |
---|---|---|
committer | Satoshi Asami <asami@FreeBSD.org> | 1997-02-28 09:24:51 +0000 |
commit | 5a9ab9d3c2fc90596156badc88d67f87e3f04349 (patch) | |
tree | 849597eadf3907683189352f16b23ab9875ba107 /japanese/FreeWnn-lib/files | |
parent | Upgrade to 0225 (diff) |
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-lib/files')
-rw-r--r-- | japanese/FreeWnn-lib/files/patch-ab | 19 |
1 files changed, 19 insertions, 0 deletions
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) |