There is a problem in ifhp-3.5.8a6's capability to run an external program as 
defined by

        waitend=|<prog>

in the ifhp.conf config file/command line.  In particular, for those using 
appsocket printers, Do_waitend is never actually called (just a shutdown and 
read on the socket).

The following short snippet takes care of this problem:

*** ifhp.c.orig Mon Apr 29 14:43:08 2002
--- ifhp.c      Mon Apr 29 15:10:51 2002
***************
*** 1298,1303 ****
--- 1298,1307 ----
                do{
                        len = Read_status_timeout( 0 );
                } while( len == 0 );
+               if( safestrncmp(Waitend, "|", 1) == 0 ){ 
+                       Do_waitend(Job_timeout, Waitend_interval, 
+                                  Waitend_ctrl_t_interval, banner_page );
+                       }
        } else if( Status && wait_for_end ){
                /* we wait for the end normally */
                Do_waitend(Job_timeout, Waitend_interval, 
Waitend_ctrl_t_interval, banner_page );



-- 
============================================================================
   John Perkins                   |   University of Wisconsin-Madison
   Associate Researcher           |   Department of Computer Science
   [EMAIL PROTECTED]               |   1210 W. Dayton St.
   608-262-0438/608-262-9997 FAX  |   Madison, WI  53706-1685
============================================================================




-----------------------------------------------------------------------------
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