summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-09-13 18:50:38 +0000
committerJeremy Allison <jra@samba.org>2000-09-13 18:50:38 +0000
commited6530800ccf4e8303bc7e106ca7443950fa27c9 (patch)
tree673de4ffbb375e67da6f21ec97fbbd29d5cc4730
parent4aae2b3702bbfb8082fd225652337e18c3c4abf8 (diff)
downloadsamba-ed6530800ccf4e8303bc7e106ca7443950fa27c9.tar.gz
samba-ed6530800ccf4e8303bc7e106ca7443950fa27c9.tar.bz2
samba-ed6530800ccf4e8303bc7e106ca7443950fa27c9.zip
Added SIGHUP when printer deleted as well as added.
Jeremy. (This used to be commit 79c94f37d0434150d84858e67c8677650106d76c)
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c3
1 files changed, 3 insertions, 0 deletions
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 );