diff options
author | Greg Lewis <glewis@FreeBSD.org> | 2003-05-06 06:11:02 +0000 |
---|---|---|
committer | Greg Lewis <glewis@FreeBSD.org> | 2003-05-06 06:11:02 +0000 |
commit | 64c60ee3de261cf60cca54e1d37f6dc5df421fa2 (patch) | |
tree | 0e6da0070fbbdf748361e53038d20cbaff16a3ae /java/jdk13 | |
parent | - Add support for the Tools/scripts/update-patches script [1] (diff) |
. 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
Notes
Notes:
svn path=/head/; revision=80210
Diffstat (limited to 'java/jdk13')
-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 000000000000..a94c957ab7ef --- /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; + |