Clearing out file descriptors?
Clearing out file descriptors?
- Subject: Clearing out file descriptors?
- From: Cem Karan <email@hidden>
- Date: Wed, 2 Aug 2006 15:39:37 -0400
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:
This email sent to email@hidden