Commit Graph

20 Commits

Author SHA1 Message Date
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
411463b319 Remove unused header 2024-01-05 02:11:10 -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
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
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.
2023-09-21 01:44:07 -05:00
Konstantin Pereiaslov
468dba6985 Fix typo and lack of new line 2023-09-05 03:37:47 -05:00
Konstantin Pereiaslov
0d0f5c81ef Add missing include 2023-09-05 03:37:04 -05:00
Konstantin Pereiaslov
34f502fb2c Add pause method argument and support SIGSTOP 2023-09-04 21:01:30 -05:00
Konstantin Pereiaslov
7e2725aad1 Move wait_for_pid_to_exit_synchronously and exit_if_pid_has_finished to process_handling.c 2023-09-04 01:37:51 -05:00
Konstantin Pereiaslov
f32da29ab9 Move process handling to a separate source file 2023-09-04 01:27:21 -05:00