Commit baf7cf42 authored by Volker Lendecke's avatar Volker Lendecke Committed by Gerald (Jerry) Carter
Browse files

r1295: To be able to send a message to the background queue updated, we need to be

root. Otherwise the USR1 signal will not be delivered.

Volker
(This used to be commit c66be874d8ce1f381518e07025305222bac1ab3a)
parent e8a1292d
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -1231,9 +1231,13 @@ static void print_queue_update(int snum)
	 * Otherwise just do the update ourselves 
	 */
	   
	if ( background_lpq_updater_pid != -1 )
		message_send_pid(background_lpq_updater_pid, MSG_PRINTER_UPDATE, &snum, sizeof(snum), False);
	else
	if ( background_lpq_updater_pid != -1 ) {
		become_root();
		message_send_pid(background_lpq_updater_pid,
				 MSG_PRINTER_UPDATE, &snum, sizeof(snum),
				 False);
		unbecome_root();
	} else
		print_queue_update_internal( snum );
}