[laptop-mode] lm-polling-daemon started over and over again
Ritesh Raj Sarraf
rrs at researchut.com
Mon Jul 13 08:02:57 CEST 2009
--nextPart4260345.7W1mEi3nVs
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hi Matthijs,
Thank you for the patch. I've committed it to the repository.
Ritesh
On Sunday 12 Jul 2009 20:27:58 Matthijs Kooijman wrote:
> Hi all,
>
> while debugging another issue, I noticed that the check for running
> lm-polling daemons is not working.
> /usr/share/laptop-mode-tools/modules/battery-level-polling uses
> "pidof lm-polling-daemon" to see if the daemon is already running, but th=
is
> does not work. The actual process is /bin/sh, which is running the
> lm-polling-daemon script. To make this work properly, pidof supports a -x
> option:
>
> -x Scripts too - this causes the program to also return process
> id=E2=80=99s of shells running the named scripts.
>
> When passing -x, laptop-mode stops spawning new on every restart (and
> probably in other cases as well). It seems that the killall line used does
> work properly.
>
> See the attached (again trivial) patch.
>
> Gr.
>
> Matthijs
=2D-=20
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
--nextPart4260345.7W1mEi3nVs
Content-Description: This is a digitally signed message part.
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
URL: <http://mailman.samwel.tk/pipermail/laptop-mode/attachments/20090713/0459f5bf/attachment.pgp>
--nextPart4260345.7W1mEi3nVs--
More information about the laptop-mode
mailing list