diff options
author | Peter Jones <pjones@redhat.com> | 2009-03-17 14:53:04 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-03-17 15:37:50 -0400 |
commit | 345da3fc16083217d021460be46662c138469569 (patch) | |
tree | 36a5974d6e224eb6e6b7ea7c1bd241c26383d25f /isys | |
parent | 275591c48084283d1e154ebf1fd3b0c941723f9f (diff) | |
download | anaconda-345da3fc16083217d021460be46662c138469569.tar.gz anaconda-345da3fc16083217d021460be46662c138469569.tar.xz anaconda-345da3fc16083217d021460be46662c138469569.zip |
Fix ppoll() timeout=infinity usage in auditd (#484721).
{-1,-1} isn't the right way to send infinity to ppoll(), NULL is.
Diffstat (limited to 'isys')
-rw-r--r-- | isys/auditd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/isys/auditd.c b/isys/auditd.c index bbc626711..8eef4f393 100644 --- a/isys/auditd.c +++ b/isys/auditd.c @@ -48,7 +48,7 @@ static void do_auditd(int fd) { sigset_t sigs; struct sigaction sa; struct pollfd pds = { - .events = POLLIN | POLLPRI | POLLERR | POLLHUP | POLLMSG, + .events = POLLIN, .revents = 0, .fd = fd, }; @@ -71,13 +71,12 @@ static void do_auditd(int fd) { sigdelset(&sigs, SIGHUP); while (1) { - struct timespec timeout = { -1, -1 }; int retval; memset(&rep, 0, sizeof(rep)); do { - retval = ppoll(&pds, 1, &timeout, &sigs); + retval = ppoll(&pds, 1, NULL, &sigs); } while (retval == -1 && errno == EINTR && !done); if (done) |