• 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
debug a forked PTY process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

debug a forked PTY process


  • Subject: debug a forked PTY process
  • From: Nadav Tenenbaum <email@hidden>
  • Date: Mon, 8 Mar 2010 17:23:37 +0200

during developing a dashboard widget that requires an interactive use with OS X shell, I have found out that simply using NSTask doesn't work for certin uses I need.
so, in search for a solution, I have found a class which does exactly what I need: PTYTask

what this class does is to fork a PTY process and then provide an interface to it, kind of like NSTask

the problem is that when debugging using gdb, the following error appears a lot of times:
The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec().
Break on __THE_PROCESS_HAS_FORKED_AND_
YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() to debug.

what does this mean and what can I do with that?
  
 _______________________________________________
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

  • Follow-Ups:
    • Re: debug a forked PTY process
      • From: F van der Meeren <email@hidden>
    • Re: debug a forked PTY process
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Adding explicit dependency on Info.plist file for standalone executables
  • Next by Date: Re: auto-gdb
  • Previous by thread: Adding explicit dependency on Info.plist file for standalone executables
  • Next by thread: Re: debug a forked PTY process
  • Index(es):
    • Date
    • Thread