• 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
Re: Signal handling and Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Signal handling and Cocoa


  • Subject: Re: Signal handling and Cocoa
  • From: Juha Pirttilä <email@hidden>
  • Date: Wed, 22 May 2002 13:17:06 +0300

On tiistai, toukokuu 21, 2002, at 10:28 , Douglas Davidson wrote:


On Tuesday, May 21, 2002, at 05:10 AM, Juha Pirttild wrote:

2) Daemon works well on MacOS X, it handles everything OK. However, if I do the following in my Cocoa incarnation of the GUI, and send it the SIGUSR1, it stops and complains (in PB) about receiving a SIGUSR1.

It sounds like you are running in gdb? Typically gdb traps signals itself; if you want it not to, you have to tell it to, via some incantation that I don't remember. Cocoa itself tries not to be involved in signal handling.


Yes, this was the reason for the strange behaviour. You have to say "handle SIGUSR1 pass noprint" at gdb console for SIGUSR1 to be passed to the app itself.

Installing a signal handler for a Cocoa application was exactly as easy as it was supposed to be.

Thanks!

--Juha



*******************************************************************
* J u h a P i r t t i l d * * *
* email@hidden addr: Invers Ltd *
* tel: work +358-16-619 713 Tdhteldntie 54A *
* mobile +358-40-545 8342 Tdhteld *
* fax +358-16-615 529 FIN-99600 Sodankyld *
* http://www.invers.fi Finland *
*******************************************************************
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Prev by Date: Re: Confusing array of Apple Obj-C books at Vervante...
  • Next by Date: [Slightly OT] Suggestion for PB...
  • Previous by thread: Re: Signal handling and Cocoa
  • Next by thread: [OT] Intercepting emails from and to Mail.app
  • Index(es):
    • Date
    • Thread