• 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
Clearing out file descriptors?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: stop new header from being added to copy files?
  • Next by Date: Re: Debugger stops at Program Loaded
  • Previous by thread: Re: Undefined symbols not listed!
  • Next by thread: Visual Studio-style indent
  • Index(es):
    • Date
    • Thread