• 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: Who takes care of a crashing process?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Who takes care of a crashing process?


  • Subject: Re: Who takes care of a crashing process?
  • From: stephane sudre <email@hidden>
  • Date: Wed, 22 Sep 2004 18:36:35 +0200


On Sep 22, 2004, at 6:08 PM, Justin Walker wrote:


On Sep 22, 2004, at 8:13, Stephane Sudre wrote:

Stupid question probably:

When a process is properly exited, exit is called in the Kernel.

When a process crashes, exit is not called.

Is there a specific syscall called when a process crash?

Are you sure that exit() in the kernel is not called? If this were not the case, we'd be leaking file entries, memory, and other resources.

Well, I've patched the SYS_exit syscall and ran this program:

int main(...)
{
	unsigned long * ohlala=NULL;

	*ohlala=NULL;
}

I have not seen an exit call.

But maybe it's because there's no exit at the end of the code. The previous answer is confusing me right now.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Who takes care of a crashing process?
      • From: Justin Walker <email@hidden>
References: 
 >Who takes care of a crashing process? (From: Stephane Sudre <email@hidden>)
 >Re: Who takes care of a crashing process? (From: Justin Walker <email@hidden>)

  • Prev by Date: Re: Who takes care of a crashing process?
  • Next by Date: Re: Who takes care of a crashing process?
  • Previous by thread: Re: Who takes care of a crashing process?
  • Next by thread: Re: Who takes care of a crashing process?
  • Index(es):
    • Date
    • Thread