Jeff Frontz
2016-10-14 12:32:30 UTC
The reason I was trying to build the latest ksh on El Capitan was to see if
a file descriptor leak persists in the latest version.
Here's my simplified test script -- can someone running the latest version
of ksh try it and see if the list of open files (actually a pipe, I think?)
grows until the system-imposed limit is reached?
Thanks,
Jeff
---
#! /bin/ksh
fdUser() {
:
}
while true
do
fdUser <(
echo " -e"
)
if [ -d /proc ]
then
ls /proc/$$/fd
else
lsof -p $$ | wc -l
fi
sleep 1
done
a file descriptor leak persists in the latest version.
Here's my simplified test script -- can someone running the latest version
of ksh try it and see if the list of open files (actually a pipe, I think?)
grows until the system-imposed limit is reached?
Thanks,
Jeff
---
#! /bin/ksh
fdUser() {
:
}
while true
do
fdUser <(
echo " -e"
)
if [ -d /proc ]
then
ls /proc/$$/fd
else
lsof -p $$ | wc -l
fi
sleep 1
done