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

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

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

> Is it really necessary to have rwhod go round in a loop like this
> wasting CPU time?  What was wrong with using alarm() ?
>=20
> It doesn't seem to work either -- it doesn't see any of the broadcast
> messages, while the old rwhod works just fine.
>=20
> ...
>=20
> 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.

This was tested on RELENG_4, not -current, by the way.

--=20
Ben Smithurst / ben@smithurst.org

--GRPZ8SYKNexpdSJ7
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

iD8DBQE7XRYhbPzJ+yzvRCwRAo1bAKDJbuXFDv0YEG1L8VKWizB3Ov0wQQCgs9FK
la8vjSW3ELfu0xJnsX9qabw=
=WTMX
-----END PGP SIGNATURE-----

--GRPZ8SYKNexpdSJ7--

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?20010724073058.B14233>