Date: Fri, 8 Oct 1999 21:37:42 +0100 From: Ben Smithurst <ben@scientia.demon.co.uk> To: Joe Pepin <joe_pepin@ins.com> Cc: FBSDQuestion <freebsd-questions@freebsd.org> Subject: Re: Where (in the source) do PIDs get set? Message-ID: <19991008213742.A423@strontium.scientia.demon.co.uk> In-Reply-To: <NDBBJMHAKKLLMBFNMKDDAEACCGAA.joe_pepin@ins.com> References: <NDBBJMHAKKLLMBFNMKDDAEACCGAA.joe_pepin@ins.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Joe Pepin wrote: > I'd like to start poking around in the source to start learning > what's up. My first question is- where do I look to find the piece > of code that sets a processes' PID? I've grepped and grepped, but > with no real luck. I'm interested in seeing how hard it would be > to randomize those like in OpenBSD. Look around line 251 of /sys/kern/kern_fork.c. If you have a different version, it may vary, look for occurences of "nextpid" and you shouldn't be far away. -- Ben Smithurst | PGP: 0x99392F7D ben@scientia.demon.co.uk | key available from keyservers and | ben+pgp@scientia.demon.co.uk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991008213742.A423>