fix FS#924: cancel printing under Linux