Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!watmath!clyde!burl!hou3c!hocda!houxm!houxz!vax135!cornell!uw-beaver!tektronix!hplabs!sri-unix!morgan@UCI-750A.ARPA
From: morgan@UCI-750A.ARPA
Newsgroups: net.unix-wizards
Subject: lprm cannot restart printer daemon (4.2)
Message-ID: <12168@sri-arpa.UUCP>
Date: Mon, 6-Aug-84 23:59:58 EDT
Article-I.D.: sri-arpa.12168
Posted: Mon Aug  6 23:59:58 1984
Date-Received: Fri, 10-Aug-84 01:44:29 EDT
Lines: 39

From:  Tim Morgan 

Description:
	When you use lprm to remove a file from a printer queue,
	if that job is the currently active job for that queue,
	the daemon is killed to stop it from printing the job.
	The job is then dequeued, and lprm attempts to restart
	the queue.  But it always fails with the message

		/usr/lib/lpd: : unknown printer

Repeat-By:
	Try removing the active job with lprm.

Fix:
	The call to startdaemon() in rmjob.c is passed the host name
	instead of the name of the printer whose daemon is to be
	restarted.

*** ucb_rmjob.c	Sun Jul 17 00:12:55 1983
--- fixed_rmjob.c	Mon Aug  6 20:34:25 1984
***************
*** 89,95
  	/*
  	 * Restart the printer daemon if it was killed
  	 */
! 	if (assasinated && !startdaemon(host))
  		fatal("cannot restart printer daemon\n");
  	exit(0);
  }

--- 89,95 -----
  	/*
  	 * Restart the printer daemon if it was killed
  	 */
! 	if (assasinated && !startdaemon(printer))
  		fatal("cannot restart printer daemon\n");
  	exit(0);
  }