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:
parent
5207496097
commit
79c94f37d0
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user