Re: SoC: help with LISTs and killing procs

2006-08-11 Thread Divacky Roman
You could make em_find() take an argument to specify if it should acquire a WLOCK instead of an RLOCK. Really, unless you have measured a lot of contention on this lock, you should just make it a mtx, and only go back and make it a rwlock if it really needs it. Also, you currently can't do

Re: [fbsd] sshd throwing signal 6 (sigabrt)

2006-08-11 Thread Jeremie Le Hen
Hi Ulf, On Tue, Jul 18, 2006 at 03:14:16PM -0700, Ulf Zimmermann wrote: I have a FreeBSD server (was 5.4-prerelease, now 6-stable as of noon PDT). On this server I got a problem with sshd throwing signal 6: Jul 18 15:04:03 log01 sshd[66161]: debug2: User child is on pid 66163 Jul 18

Attach/detach devices

2006-08-11 Thread Johnny Choque
Hi, I'm trying to do a userland program that detect the event when a device is attached/detached. In particular, I would like to detect these events for wireless pc card insertion/ejection or when tear down the connection of the wireless interface build-in laptop. I've found that functions

Re: [fbsd] sshd throwing signal 6 (sigabrt)

2006-08-11 Thread Ulf Zimmermann
On Fri, Aug 11, 2006 at 11:46:24AM +0200, Jeremie Le Hen wrote: Hi Ulf, On Tue, Jul 18, 2006 at 03:14:16PM -0700, Ulf Zimmermann wrote: I have a FreeBSD server (was 5.4-prerelease, now 6-stable as of noon PDT). On this server I got a problem with sshd throwing signal 6: Jul 18

Re: Attach/detach devices

2006-08-11 Thread Dag-Erling Smørgrav
Johnny Choque [EMAIL PROTECTED] writes: I'm trying to do a userland program that detect the event when a device is attached/detached. man devd DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list

RE: Attach/detach devices

2006-08-11 Thread Johnny Choque
Hi, I sent an email to this mailing list some day ago (August 2) explaining a problem that I had with devd.conf. Using devd -dD, I detected that removing the wireless pc card the rules that are included in the detach section do not happen to run, but anybody answered my question :-( Cheers,

Re: Attach/detach devices

2006-08-11 Thread Dag-Erling Smørgrav
Johnny Choque [EMAIL PROTECTED] writes: I sent an email to this mailing list some day ago (August 2) explaining a problem that I had with devd.conf. Using devd -dD, I detected that removing the wireless pc card the rules that are included in the detach section do not happen to run, but anybody

Re: Attach/detach devices

2006-08-11 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Johnny Choque [EMAIL PROTECTED] writes: : I sent an email to this mailing list some day ago (August 2) explaining a : problem that I had with devd.conf. Using devd -dD, I detected that removing : the wireless pc card the rules that are included in the

Re: Attach/detach devices

2006-08-11 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Johnny Choque [EMAIL PROTECTED] writes: : Hi, : : I'm trying to do a userland program that detect the event when a device is : attached/detached. In particular, I would like to detect these events for : wireless pc card insertion/ejection or when tear

Re: Attach/detach devices

2006-08-11 Thread M. Warner Losh
In message: [EMAIL PROTECTED] [EMAIL PROTECTED] (Dag-Erling Smørgrav) writes: : Johnny Choque [EMAIL PROTECTED] writes: : I sent an email to this mailing list some day ago (August 2) explaining a : problem that I had with devd.conf. Using devd -dD, I detected that removing : the