1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00

Added SIGHUP when printer deleted as well as added.

Jeremy.
This commit is contained in:
Jeremy Allison 0001-01-01 00:00:00 +00:00
parent 5207496097
commit 79c94f37d0

View File

@ -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 );