• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSPipe eating up all available pipes on system.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPipe eating up all available pipes on system.


  • Subject: Re: NSPipe eating up all available pipes on system.
  • From: Ken Thomases <email@hidden>
  • Date: Wed, 20 Feb 2013 16:31:02 -0600

On Feb 20, 2013, at 4:10 PM, Mr. Gecko wrote:

> 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?

Run your program under the Object Allocations and Leaks instruments and see if it can identify NSPipe objects that are still alive after you think they shouldn't be.  Then use the object retain/release history to try to figure out why.

I didn't immediately see any memory management bugs.  Can't hurt to have the static analyzer check, too.

Regards,
Ken


_______________________________________________

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


  • Follow-Ups:
    • Re: NSPipe eating up all available pipes on system.
      • From: "Mr. Gecko" <email@hidden>
    • Re: NSPipe eating up all available pipes on system.
      • From: "Mr. Gecko" <email@hidden>
References: 
 >NSPipe eating up all available pipes on system. (From: "Mr. Gecko" <email@hidden>)

  • Prev by Date: Re: CALayer's backgrounds filters having effect only on immediate parent?
  • Next by Date: Re: CALayer's backgrounds filters having effect only on immediate parent?
  • Previous by thread: NSPipe eating up all available pipes on system.
  • Next by thread: Re: NSPipe eating up all available pipes on system.
  • Index(es):
    • Date
    • Thread