HEADS UP: Realtime update support added to battstat

Vladimir Chukharev chu at h33.erkki.ton.tut.fi
Sat Jul 2 12:03:27 GMT 2005


On Sat, 02 Jul 2005 10:48:14 +0300, Vladimir Chukharev <chu at h33.erkki.ton.tut.fi> wrote:

> On Sat, 02 Jul 2005 07:45:47 +0300, Joe Marcus Clarke <marcus at FreeBSD.org> wrote:
>
>> Ah!  I was looking for a devd file descriptor leak.  I completely forgot
>> about /dev/acpi.  The fact that you're running into this leak means
>> you're probably not connecting to devd.pipe correctly.  Check the perms
>> on /var/run/devd.pipe to make sure they're 0666.  However, I have fixed
>
> chu at chu:~ 10:23:18 $ ls -Fl  /var/run/devd.pipe
> srw-rw-rw-  1 root  wheel  0 Jun 30 21:30 /var/run/devd.pipe=
>
>> the leak, and a new patch is up at
>> http://www.marcuscom.com/downloads/patch-battstat-acpi.
>
> Now everything is fine:
> chu at chu:~ 10:40:19 $ ps ax | grep batt
> 96529  ??  S      0:03,13 /usr/X11R6/libexec/battstat-applet-2 --oaf-activate-iid=OAFIID:GNOME_BattstatApplet_Factory --oaf-ior-fd=39
> chu at chu:~ 10:41:04 $ lsof -p 96529 > batt.lsof
> chu at chu:~ 10:41:18 $ lsof -p 96529 | diff -u batt.lsof -
> chu at chu:~ 10:41:27 $ lsof -p 96529 | diff -u batt.lsof -
> chu at chu:~ 10:45:05 $
>
> So, no change of lsof output during 5 min.
>
> Thank you!

Well, that is fine, but now I rebooted (last time I did not even log out),
and BatteryMonitor again died in a minute... Being reloaded, it works
fine now.

I gona find how to build it with symbol table for the next crash.

>> Joe
-- 
V.Chukharev


More information about the freebsd-gnome mailing list