• 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
App leaks file descriptors, but not when running via XCode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

App leaks file descriptors, but not when running via XCode


  • Subject: App leaks file descriptors, but not when running via XCode
  • From: Gerben Wierda <email@hidden>
  • Date: Wed, 28 Nov 2007 23:51:03 +0100

I have an app that runs subprocesses via AuthExecuteWithPrivileges() and leaks file descriptors. I have not found yet how. The AutExecuteWithPrivileges() subprocesses communicate back to the app with named pipes so I can separate stdout and stderr.

When I try to run the app under XCode, I get no leaks. When I run outside XCode and the app finishes its task (with thousands of subprocesses, some through AuthExecuteWithPrivileges() some via NSTask, I get thousands of lines like this

i-Install 11948 gerben 3812u unix 0x673f550 0t0 - >(none)

from lsof. But no such lines at all when running via XCode.

How can XCode influence this?

Thanks,

G
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: 10.2.8 and leopard
  • Next by Date: Re: 10.2.8 and leopard
  • Previous by thread: Re: XCode 3.0 Find Menu comment and question
  • Next by thread: Under what circumstances will catch (...) not catch?
  • Index(es):
    • Date
    • Thread