Linux: Improve handling of resource limits in misc/tst-ttyname
authorFlorian Weimer <fweimer@redhat.com>
Fri, 4 Jan 2019 11:12:17 +0000 (12:12 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 4 Jan 2019 11:12:17 +0000 (12:12 +0100)
commit4392898d8c348625681581728aa558733e578f07
treede2def2b9daee7be9fdf67989723366848ef3889
parentce7eb0e90315eb1939ac29f656d39b3db858c092
Linux: Improve handling of resource limits in misc/tst-ttyname

An attempt to re-create a different PTY under the same name can fail
if the PTY has a very high number.  Try to increase the file
descriptor limit in this case, and bail out if this still does not
allow the test to proceed.
ChangeLog
sysdeps/unix/sysv/linux/tst-ttyname.c