adding proc to allproc

2008-12-19 Thread Ferner Cilloniz
Hello everyone. I am playing with freebsd and just learning some things about the FreeBSD kernel. So for my first quest i am placing random processes from the allproc list into a list of my own and trying to add them back into allproc I have pasted the code below. -

Re: adding proc to allproc

2008-12-19 Thread Julian Elischer
Ferner Cilloniz wrote: Hello everyone. I am playing with freebsd and just learning some things about the FreeBSD kernel. So for my first quest i am placing random processes from the allproc list into a list of my own and trying to add them back into allproc I have pasted the code below. ---

Re: adding proc to allproc

2008-12-19 Thread Ferner Cilloniz
When i run the code from a KLD it hangs the system. No reboot occurs however, it just hangs there. On Fri, 2008-12-19 at 21:27 -0800, Julian Elischer wrote: > Ferner Cilloniz wrote: > > Hello everyone. > > > > I am playing with freebsd and just learning some things about the > > FreeBSD kernel.

Re: adding proc to allproc

2008-12-19 Thread Julian Elischer
Ferner Cilloniz wrote: When i run the code from a KLD it hangs the system. No reboot occurs however, it just hangs there. well, firstly you have no locking though that would probably let you get away with it most times. Where does the process come from in the first place? It sounds like you