On Thu, Sep 06, 2012 at 07:10:02PM +0400, Pavel Emelyanov wrote: > > Leave the whole thing in util.c ok > > int copy_file(int fd_in, int fd_out, size_t bytes) > > { > > ssize_t written = 0; > > > +bool is_service_fd(int fd, int type) > > +{ > > + return fd > rlim_min && fd == get_service_fd(type); > > return fd > rlim_cur - SFD_OFF_MAX; ok