• 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: Process exit notifcation in a kext
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Process exit notifcation in a kext


  • Subject: Re: Process exit notifcation in a kext
  • From: Bogdan Harjoc <email@hidden>
  • Date: Wed, 16 Jun 2010 15:50:00 +0300

On Wed, Jun 16, 2010 at 3:13 PM, Dave Keck <email@hidden> wrote:
> I mistakenly sent my last message off-list; you might want to put your
> reply on-list for more input.
>
>> Thank you for the reply. According to [1], PIDs are not reused, so I
>> assume there's no need to worry about races with this approach.
>>
>> [1] http://support.apple.com/kb/TA44156
>
> I'm not sure what point that document is trying to make, but PIDs are
> most certainly reused as necessary. The only PID-reuse limitation that
> I'm aware of is that a PID can't be reused until its parent process
> has reaped it (otherwise waitpid() could fail.)

The relevant snippet is:

"Every process has a process identification number (PID) that is
assigned according to order it was run. The first process that runs
has a PID of 1. The second has a PID of 2 and so on. If a process dies
or is killed, that PID is not reused. If the computer is restarted,
the process count begins at 1 again."

> Perhaps you could give some details of what you're trying to accomplish?

I am using process exit notifications to clean up the list of PIDs for
which traffic is filtered.

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

This email sent to email@hidden

  • Follow-Ups:
    • Re: Process exit notifcation in a kext
      • From: Ronnie Misra <email@hidden>
    • Re: Process exit notifcation in a kext
      • From: Dave Keck <email@hidden>
References: 
 >Process exit notifcation in a kext (From: Bogdan Harjoc <email@hidden>)

  • Prev by Date: Re: Process exit notifcation in a kext
  • Next by Date: Re: Process exit notifcation in a kext
  • Previous by thread: Re: Process exit notifcation in a kext
  • Next by thread: Re: Process exit notifcation in a kext
  • Index(es):
    • Date
    • Thread