I use pexpect on solaris to automating file transfer from a ftp server.
After finishing my work, I did a child.close()
However, when I look at the /proc/<process>/fd, the fd remains open. After running the script for a while, the fd starts to build up and crash the script.
This does not happen on linux.