Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jul 2001 07:29:53 +0100
From:      Ben Smithurst <ben@FreeBSD.org>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        audit@FreeBSD.org
Subject:   Re: rwhod signal fixes
Message-ID:  <20010724072952.A14233@strontium.shef.vinosystems.com>
In-Reply-To: <20010723223904.A1381@xor.obsecurity.org>
References:  <20010723223904.A1381@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--Qxx1br4bt0+wmkIi
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Kris Kennaway wrote:

> +		n =3D poll(pfd, 1, 1000);

Is it really necessary to have rwhod go round in a loop like this
wasting CPU time?  What was wrong with using alarm() ?

It doesn't seem to work either -- it doesn't see any of the broadcast
messages, while the old rwhod works just fine.

=2E..

Ah, I see the problem, that pfd[0].revents =3D POLLIN line should be
pfd[0].revents =3D pfd[0].events =3D POLLIN, I think.  After making that
change it works, but I still don't see why it has to sit in a loop
waking up every second to do bugger all.

--=20
Ben Smithurst / ben@FreeBSD.org                 FreeBSD: The Power To Serve
                                                    http://www.FreeBSD.org/

--Qxx1br4bt0+wmkIi
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE7XRXgbPzJ+yzvRCwRAmlVAKCMKfo+TzvZEheqsFU1htQCl7F1uwCferrI
eeA3JVhEnHhnS2KUJTWpMZ8=
=859f
-----END PGP SIGNATURE-----

--Qxx1br4bt0+wmkIi--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010724072952.A14233>