From 64c60ee3de261cf60cca54e1d37f6dc5df421fa2 Mon Sep 17 00:00:00 2001 From: Greg Lewis Date: Tue, 6 May 2003 06:11:02 +0000 Subject: [PATCH] . 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 --- java/jdk13/files/patch-iomgr.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 java/jdk13/files/patch-iomgr.c 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; +