diff options
author | glewis <glewis@FreeBSD.org> | 2003-05-06 14:11:02 +0800 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2003-05-06 14:11:02 +0800 |
commit | 57e1a8ed6a0070aa95d078d867629f16d47ec550 (patch) | |
tree | 25e01ae0f0bfe66e3213d6755be07baf7b909bd8 /java | |
parent | 941f60b22b00fe5fe59c5bf4245d6336a0cbde64 (diff) | |
download | freebsd-ports-graphics-57e1a8ed6a0070aa95d078d867629f16d47ec550.tar.gz freebsd-ports-graphics-57e1a8ed6a0070aa95d078d867629f16d47ec550.tar.zst freebsd-ports-graphics-57e1a8ed6a0070aa95d078d867629f16d47ec550.zip |
. Remove an assert() which asserts that if isatty() is true then
ttyname() must not return NULL. This isn't entirely true according
to the manual page (the device must be able to be found as well) and
certainly appears to not necessarily be true in the package building
environment on bento (plus at least the PR submitter's environment).
Note that this assert() was, of course, only ever triggered when
running in debug mode (which most people don't, but does happen
during the build in some parts). Also note that there is a check
for isatty() preceding the call for ttyname() and a NULL return
from ttyname() is handled, so removing this assert should not
create any problems.
PR: 48164
Diffstat (limited to 'java')
-rw-r--r-- | java/jdk13/files/patch-iomgr.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/java/jdk13/files/patch-iomgr.c b/java/jdk13/files/patch-iomgr.c new file mode 100644 index 00000000000..a94c957ab7e --- /dev/null +++ b/java/jdk13/files/patch-iomgr.c @@ -0,0 +1,12 @@ +$FreeBSD$ + +--- ../src/solaris/hpi/green_threads/src/iomgr.c Thu Mar 13 13:55:24 2003 ++++ ../src/solaris/hpi/green_threads/src/iomgr.c Thu Mar 13 13:55:53 2003 +@@ -352,7 +352,6 @@ + * Get the ttyname, so we can reopen it. + */ + name = ttyname(fd); +- sysAssert(name != NULL); + if (name == NULL) + return FALSE; + |