~ubuntu-branches/ubuntu/utopic/audit/utopic

« back to all changes in this revision

Viewing changes to lib/netlink.c

  • Committer: Bazaar Package Importer
  • Author(s): Philipp Matthias Hahn
  • Date: 2009-04-07 00:03:54 UTC
  • mfrom: (1.2.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20090407000354-ny4m29eckoycogz5
Tags: 1.7.12-1
* New upstream release. (Closes: #522026)
* Fix "typo in long description: (Closes: #513937)
* debian/control:
  - Bump Standards-Version: 3.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* netlink.c --
2
 
 * Copyright 2004, 2005 Red Hat Inc., Durham, North Carolina.
 
2
 * Copyright 2004, 2005, 2009 Red Hat Inc., Durham, North Carolina.
3
3
 * All Rights Reserved.
4
4
 *
5
5
 * This library is free software; you can redistribute it and/or
254
254
 */
255
255
static int check_ack(int fd, int seq)
256
256
{
257
 
        int rc, retries = 100;
 
257
        int rc, retries = 80;
258
258
        struct audit_reply rep;
259
259
        struct pollfd pfd[1];
260
260
 
262
262
        pfd[0].fd = fd;
263
263
        pfd[0].events = POLLIN;
264
264
        do {
265
 
                rc = poll(pfd, 1, 100); /* .1 second */
 
265
                rc = poll(pfd, 1, 500); /* .5 second */
266
266
        } while (rc < 0 && errno == EINTR);
267
267
 
268
268
        /* We don't look at rc from above as it doesn't matter. We are