hi,

the same problems happens with netscape and pine, mailnly on LINUX
boxes...




[EMAIL PROTECTED] schrieb:
> 
> > From [EMAIL PROTECTED] Fri Oct 27 03:47:28 2000
> > Date:   Fri, 27 Oct 2000 11:28:52 +0200
> > From: Robin Sommer <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: LPRng: [3.6.26] Max_fd
> >
> > Hi,
> >
> > after an upgrade from LPRng 3.6.22 to 3.6.26 at least two of our
> > users have problems. They get an error message like
> >
> >          Max_open:fd 34 and old Max_fd 19
> >
> > when they print from specific applications (ghostview and Acrobat
> > Reader). Looking into the source it seems that this error message
> > hasn't been in 3.6.22. What is it supposed to mean and what can we
> > do about it? Any idea?
> >
> > Thanks,
> >
> > Robin
> >
> > P.S.: All on Solaris 2.6
> >
> > --
> > Robin Sommer          * private      05251/65041 * work           05251/60-3322
> > Univers. of Paderborn * [EMAIL PROTECTED] * [EMAIL PROTECTED]
> 
> It was put into the code in order to track down problems with applications
> that are closing all of the 'unused' file descriptors when they do
> and execve( lpr ),  or do not close file descriptors.
> 
> And it looks like we have a couple of culprits right here: ghostview and Acrobat
> Reader.
> 
> This surfaced on a couple of systems when lpr got an 'out of file descriptor'
> system level error... Needless to say,  I was perturbed.
> 
> The 'Max_open()' code was put in to try and find out just how many file
> descriptors were in use.  I would use it to track the 'high water mark'
> and the when I did an EXECVE I would close only the ones 'below'
> the high water mark.
> 
> Here is the code:
> 
> void Max_open( int fd )
> {
>     if( fd > 0 ){
>         if( fd > Max_fd+10 ){
>             FATAL(LOG_ERR) "Max_open: fd %d and old Max_fd %d", fd, Max_fd);
>         }
>         if( fd > Max_fd ) Max_fd = fd;
>     }
> }
> All you need to do is comment out the check...
> 
> void Max_open( int fd )
> {
>     if( fd > 0 ){
> #if 0
>         if( fd > Max_fd+10 ){
>             FATAL(LOG_ERR) "Max_open: fd %d and old Max_fd %d", fd, Max_fd);
>         }
> #endif
>         if( fd > Max_fd ) Max_fd = fd;
>     }
> }
> 
> But you might also send a flame to the ghostview and Acrobat folks...
> 
> Patrick Powell                 Astart Technologies,
> [EMAIL PROTECTED]            9475 Chesapeake Drive, Suite D,
> Network and System             San Diego, CA 92123
>   Consulting                   858-874-6543 FAX 858-279-8424
> LPRng - Print Spooler (http://www.astart.com)
> 
> -----------------------------------------------------------------------------
> YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
> The address you post from MUST be your subscription address
> 
> If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
> or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
> to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
> with:                           | example:
> subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
> unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]
> 
> If you have major problems,  send email to [EMAIL PROTECTED] with the word
> LPRNGLIST in the SUBJECT line.
> -----------------------------------------------------------------------------

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to