1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00
freebsd-ports/java/jdk13/files/patch-iomgr.c
Greg Lewis 64c60ee3de . 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
2003-05-06 06:11:02 +00:00

13 lines
334 B
C

$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;