NSPipe eating up all available pipes on system.
NSPipe eating up all available pipes on system.
- Subject: NSPipe eating up all available pipes on system.
- From: "Mr. Gecko" <email@hidden>
- Date: Wed, 20 Feb 2013 16:10:22 -0600
I have written a daemon that listens for an incoming connection, runs a process using NSTask, and sends the output to the connection. After a couple of hours of receiving connections at varying lengths of time… The system has all of it's pipes taken, and the process stops sending responses to the connections. I know that the pipes are all taken because... If I was to run something in terminal such as "cat Makefile | less", less will not output anything. If I was to run git log, I would not get anything (git log outputs the history of a repository to less via a pipe).
I made a test which shows the issue with an exception… Can someone help me find out how to close the pipes or something of the sort?
https://dl.dropbox.com/u/610721/Eat Pipes.zip
Thank you.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden