From ed6530800ccf4e8303bc7e106ca7443950fa27c9 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 13 Sep 2000 18:50:38 +0000 Subject: Added SIGHUP when printer deleted as well as added. Jeremy. (This used to be commit 79c94f37d0434150d84858e67c8677650106d76c) --- source3/rpc_server/srv_spoolss_nt.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3') diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 5f69c097c7..4727ee8092 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -247,6 +247,9 @@ static BOOL delete_printer_handle(POLICY_HND *hnd) DEBUGADD(10,("Unlinking output file [%s]\n", tmp_file)); unlink(tmp_file); + // Send SIGHUP to process group... is there a better way? + kill(0, SIGHUP); + if ( ( i = lp_servicenumber( Printer->dev.handlename ) ) >= 0 ) { lp_remove_service( i ); lp_killservice( i ); -- cgit