Closing all FDs

From: Michal Luscon <mluscon_at_redhat.com>
Date: Tue, 22 Apr 2014 11:01:41 +0200

Hi,

I am wondering whether it would be possible to replace SQUID_MAXFD by
Biggest_FD in the following code snippet from ipc.cc:

    /* Make sure all other filedescriptors are closed */
    for (x = 3; x < SQUID_MAXFD; ++x)
        close(x);

The motivation behind this request is to speed up reloading Squid in
paravirtualized environment.

Regards,

Michal

---
Michal Luscon
Associate Software Engineer
Red Hat, Inc.
Brno, Czech Rep.
Received on Tue Apr 22 2014 - 09:01:54 MDT

This archive was generated by hypermail 2.2.0 : Tue Apr 22 2014 - 12:00:14 MDT