Date: Wed, 17 Mar 2004 16:45:30 +0100 From: Toni Andjelkovic <toni@soth.at> To: Artis Caune <ac-lists@latnet.lv> Cc: freebsd-hackers@freebsd.org Subject: Re: kernel modules programming: struct proc question Message-ID: <20040317154530.GD6576@tv.soth.at> In-Reply-To: <opr40hacqdcpfy5d@mail.latnet.lv> References: <20040316163956.GD638@lame.novel.ru> <20040316181307.GA6576@tv.soth.at> <20040317142451.GC2506@lame.novel.ru> <opr40hacqdcpfy5d@mail.latnet.lv>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 17 2004 (17:00:02 +0200), Artis Caune wrote: > "pid_t" is signed int type, or am I missing something? You are right, pid_t is __int32_t, which is signed, so "%d" is the correct format. I assumed that in this case, the signed integer overflowed, so maybe interpreting it as an unsigned integer would make more sense. However, I don't know what could cause a pid_t to become that large. On 5.x, fork1() tries to find an unused pid for a new process and checks if it lies between 100 and PID_MAX. Cheers, Toni
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040317154530.GD6576>