Releases: perk11/runwhenidle
Releases · perk11/runwhenidle
Release 0.5.0
- Allow to monitor existing process rather than starting a new command.
- Now pausing and resuming all child (and grandchild, etc) processes as well.
- Change default pause method to SIGSTOP for compatibility with more software out of the box.
- Improve error messages.
- Improve --help and README.
Full Changelog: 0.4.1...0.5.0
Release 0.4.1
- Fix compilation error introduced in 0.4.0. Pass errno to handle_kill_error rather than reading it there and use strerror() rather than parsing error manually.
Release 0.4.0
Features
- Add a pause --pause-method|-m option with a support for SIGSTOP. Specifies method for pausing the command when user is not idle. Available parameters: SIGTSTP (can be ignored by the program), SIGSTOP (can not be ignored). (default: SIGTSTP).
- Add --start-monitoring-after|-a option to set an initial delay in milliseconds before monitoring starts. This helps to catch errors happening shortly after the execution has started. (default: 300 ms).
Fixes
- Minor bug and typo fixes.
Other
- Code reorganization.
- Enable gcc warnings and disable compilation when warnings exist.
- Mention existence AUR package in the documentation.
- Add "Known issues" section to documentation.
0.3.0
- Add --version|V argument that outputs current version.
- Add --debug argument for additional output verbosity.
- If X is not available, the command will now run without pausing instead of failing to run.
- Error messages are now displayed in red when TTY is interactive.
- Implement handling the interruption signals: pass them to the underlying command and stop the idle checks.
Full Changelog: 0.2.0...0.3.0
0.2.0
- After encountering first unknown argument start treating the remaining arguments as command to be run. This allows to not add quotes around the command that needs to be run.
- Better handling of errors when it's impossible to pause/resume process.
- Display the command that was started.
- Improved verbose output.
- Change polling to use nanosleep() instead of sleep() and calculate the remaining sleep time when user is active in milliseconds instead of seconds, allowing to get closer to the desired timeout value.
- Reworked main loop to avoid 2 extra sleeps before resuming the command.
- Fix possible overflow in timeout parameter and add an upper bound to the parameter - 100 million seconds.
Full Changelog: 0.1.0...0.2.0