Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Clearing out file descriptors?



I'm debugging some library code that is designed to attach to one of the /dev/tty devices in some code that I'm trying to make portable. My problem is with GDB and XCode. The first time I attach to a port, the entire process goes along smoothly; the port is opened, I can read/write, and I can close it. The problem is the second time I try to open the same port; I can't. If fails every time. I've double checked to make sure that I'm calling close on the file descriptor before I call open on it again, but no dice. Any thoughts/ suggestions, etc.?

I will note that I am running under GuardMalloc, and that I have the following environment variables turned on and defined as 1:

MallocHelp
MallocGuardEdges
MallocScribble
MallocStackLoggingNoCompact
MallocBadFreeAbort

Any help is appreciated.

Thanks,
Cem Karan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.