forked from agalakhov/captdriver
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SIGTERM handling for graceful job cancellation
This squashed commit contains merged commits from 0.1.3-dev (de156c9) Signals are now handled with the POSIX sigation(). A manual compile-time fallback to the ISO-specified signal() is available, see std.h LBP2900/3000 LED may keep blinking during use if a job is cancelled after it starts blinking. The LED returns to normal when a job completes or is cancelled while the LED is off. PPD files removed
- Loading branch information
Showing
9 changed files
with
182 additions
and
493 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
8cf7b6b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sbn001 if you are reading this, here's another commit for you. This commit concludes another wave of changes that added two key features: paper button support on the LBP2900 (which you have already reported on) and preliminary support for graceful job cancellation.
The latter should allow you to resume from printing after cancelling a job without power cycling or reconnecting the printer. If we get the job cancellation right, then we will have made the first step towards a truly viable alternative to the Canon drivers.
Please test the job cancellation routine by starting a job, cancelling it, and finally starting another job. You should be able to continue without any trouble, save for a lag of about 5-10 seconds. Try cancelling the job at different stages, like before a page, during a page, when out of paper, etc... Let me know how things went with this commit, and happy printing! 📄