• 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
How the run box terminates a process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How the run box terminates a process


  • Subject: How the run box terminates a process
  • From: James Turner <email@hidden>
  • Date: Tue, 19 Jul 2005 07:59:32 +0100

Apologies if this is a FAQ, I've searched various places for an answer without success.

Essentially: what is the signal that X-Code sends to a running process when I press the 'Terminate' button in the Run Log? Is it by any chance SIGKILL, which apparently cannot be handled by the program itself?

This is a problem for me, because I would like to cleanly shutdown some resources used by my program when terminated from the Run Log; I have handlers for SIGTERM, SIGQUIT, and these work from the shell if I use Ctrl-C ... but not from X-Code. Please note, this is a command line program with no GUI, so for the moment, Ctrl-C is how I want / expect to perform an orderly shutdown.

Anyway, if anyone could confirm X-Code's behaviour, and possibly suggest ways to modify / work around it, please do so.

Thanks,
James

--

We are all in the gutter, but some of us are looking at the stars.


 _______________________________________________
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: "Program exited with status value:45. mi_cmd_stack_list_frames_lite: No stack." Eh?
  • Next by Date: Re: "Program exited with status value:45. mi_cmd_stack_list_frames_lite: No stack." Eh?
  • Previous by thread: Re: "Program exited with status value:45. mi_cmd_stack_list_frames_lite: No stack." Eh?
  • Next by thread: XCode 2.1 and Copy Files
  • Index(es):
    • Date
    • Thread