117 Commits

Author SHA1 Message Date
Konstantin Pereiaslov
00e6bf811a Cron support 2026-01-05 02:05:54 -06:00
Konstantin Pereiaslov
6be2b875bf Experimental Wayland support 2026-01-02 03:10:57 -06:00
Konstantin Pereiaslov
e9792203a8 Make errors bold 2024-01-08 00:32:31 -06:00
Konstantin Pereiaslov
72eca0b87e Update spacing in usage 0.5.0 2024-01-07 13:05:07 -06:00
Konstantin Pereiaslov
92ab534704 Use comma instead of pipe for separating argument name variations 2024-01-07 02:41:18 -06:00
Konstantin Pereiaslov
ee3840bf9c Fix error messages when non-numeric value is passed to numeric arguments 2024-01-07 02:39:27 -06:00
Konstantin Pereiaslov
94e8b6d248 Improve output in case of user errors
Do not call print_usage() every time, display a shorter message instead.
2024-01-07 02:25:40 -06:00
Konstantin Pereiaslov
5cc78ac4d4 Make getopt error messages red and add binary name to other argument parsing errors 2024-01-07 02:08:10 -06:00
Konstantin Pereiaslov
a06837530e Improve formatting of usage 2024-01-07 01:15:54 -06:00
Konstantin Pereiaslov
ae47d9dfdc Mirror changes from readme in --help 2024-01-07 01:06:59 -06:00
Konstantin Pereiaslov
37ab18d310 Update README.md
Remove extra space
2024-01-07 01:03:29 -06:00
Konstantin Pereiaslov
1b7c092444 Update README.md
Replace "command" with "process" where appropriate
2024-01-07 09:54:08 +03:00
Konstantin Pereiaslov
86011052aa README.md improvements
Restructure, improve examples and more
2024-01-07 09:50:32 +03:00
Konstantin Pereiaslov
5055d4f949 Update README.md
Add better examples and move options after the examples.
2024-01-07 09:22:49 +03:00
Konstantin Pereiaslov
fffe7f31a6 Simplify logic in fprintf_error 2024-01-05 03:23:26 -06:00
Konstantin Pereiaslov
b858c7c4a7 Turn polling_interval_ms into a constant 2024-01-05 03:15:46 -06:00
Konstantin Pereiaslov
b2c8e2f20b Fix copy-paste error 2024-01-05 03:10:10 -06:00
Konstantin Pereiaslov
941d8fd046 Output fopen errors other than file not found even when debug is not on 2024-01-05 02:58:14 -06:00
Konstantin Pereiaslov
b2ed78225a Additional debug messages 2024-01-05 02:49:44 -06:00
Konstantin Pereiaslov
9b53b0f696 Add missing fclose() on proc stat file 2024-01-05 02:49:30 -06:00
Konstantin Pereiaslov
bb6d1690fd Fix that SIGINT and SIGTERM received by runwhenindle were sent to the process even in PID mode. 2024-01-05 02:37:26 -06:00
Konstantin Pereiaslov
395d43dc05 Check if PID is running before starting to monitor 2024-01-05 02:23:45 -06:00
Konstantin Pereiaslov
411463b319 Remove unused header 2024-01-05 02:11:10 -06:00
Konstantin Pereiaslov
76794c2c1a Update README to account for recent updates 2024-01-05 02:05:31 -06:00
Konstantin Pereiaslov
629515652e Rework get_child_processes to use array instead of linked list 2024-01-04 01:39:38 -06:00
Konstantin Pereiaslov
264da8d4c7 Update sizeof syntax 2024-01-04 00:34:23 -06:00
Konstantin Pereiaslov
475350b05f Change default pause method to SIGSTOP for compatibility with more programs out of the box. 2024-01-04 00:07:04 -06:00
Konstantin Pereiaslov
dc61e18ba4 Add support of managing an external pid 2024-01-04 00:03:55 -06:00
Konstantin Pereiaslov
26925400bd Improve parsing of /proc/[pid]/stat to better support the format and account for command names with spaces 2024-01-03 23:03:04 -06:00
Konstantin Pereiaslov
fd450f8079 Fix failed to parse message 2024-01-03 14:51:30 -06:00
Konstantin Pereiaslov
f964e64751 Automated code formatting 2024-01-01 22:13:00 -06:00
Konstantin Pereiaslov
e833f1645f Handle fscanf error 2024-01-01 22:05:40 -06:00
Konstantin Pereiaslov
c60145da54 Make pausing fully recursive, even with multiple levels of processes. 2024-01-01 22:02:31 -06:00
Konstantin Pereiaslov
a94e9e0ad5 Update switch syntax to delineate blocks with variable declarations in them 2024-01-01 17:51:47 -06:00
Konstantin Pereiaslov
7b0294558c Fix passing invalid value to pause-method argument not causing an error 2024-01-01 17:50:54 -06:00
Konstantin Pereiaslov
a983cb2490 First version of pausing/resuming recursively 2023-10-01 23:14:10 -05:00
Konstantin Pereiaslov
77b26a4cdf Remove unused include 2023-09-21 01:53:26 -05:00
Konstantin Pereiaslov
de8b698545 Pass errno to handle_kill_error rather than reading it there and use strerror() rather than parsing error manually.
This fixes the compilation warning where reason was possibly undefined.
0.4.1
2023-09-21 01:44:07 -05:00
Konstantin Pereiaslov
3228448b64 Fix typo in help text 0.4.0 2023-09-21 00:29:25 -05:00
Konstantin Pereiaslov
3d489a39a3 Improve help text 2023-09-21 00:27:31 -05:00
Konstantin Pereiaslov
c3f5ac2f2c Better help text formatting 2023-09-21 00:27:31 -05:00
Konstantin Pereiaslov
7ca7a439d0 Fail compilation on gcc warnings 2023-09-21 00:27:31 -05:00
Konstantin Pereiaslov
c629c302ad Fix incorrect variable types in debug message strings 2023-09-21 00:27:31 -05:00
Konstantin Pereiaslov
2372b47522 Update README.md - fix typo 2023-09-21 08:04:24 +03:00
Konstantin Pereiaslov
77606972ab Add "Known issues" section to README 2023-09-08 11:40:49 +03:00
Konstantin Pereiaslov
c647c18fcd Newline in README 2023-09-06 04:52:50 +03:00
Konstantin Pereiaslov
ff867ea9cf README minor improvements 2023-09-05 20:52:10 -05:00
Konstantin Pereiaslov
62225b1de7 Update README and TODO as AUR package now exists. 2023-09-05 20:51:57 -05:00
Konstantin Pereiaslov
c0ca488f4e Fix that default pause method was undefined 2023-09-05 03:38:08 -05:00
Konstantin Pereiaslov
468dba6985 Fix typo and lack of new line 2023-09-05 03:37:47 -05:00