mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-18 08:02:48 +00:00
. 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
This commit is contained in:
parent
d7e6ae643c
commit
64c60ee3de
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=80210
12
java/jdk13/files/patch-iomgr.c
Normal file
12
java/jdk13/files/patch-iomgr.c
Normal file
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user