App leaks file descriptors, but not when running via XCode
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