I have a task, imageftp, that periodically connects to a server, sends a
bunch of data, and then disconnects, using the FTP protocol. It uses alarm()
to abort socket functions that hang; in particular, I just added an alarm()
to the accept() that is done by the client, waiting for the server to come
back and make the data connection for the transfer, because sometimes the
server doesn’t come back.
This is all working ok, but when I do “sin -P imageftp fd”, I see two of the
file descriptors as “[@0]”. I have no idea what this means. Further,
imageftp started out with none of these, then there was one, now there are
two. It appears I have some sort of resource leak, but I can’t tell what the
Any help would be appreciated.