Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | "Task started" is more accurate than "queued" when this is printed | Joseph Hunkeler | 2024-10-02 | 1 | -2/+2 |
| | |||||
* | Allow user to define the time interval for "task is running" message | Joseph Hunkeler | 2024-10-02 | 1 | -5/+10 |
| | |||||
* | Use watcher_diff to see how many seconds have elapsed. | Joseph Hunkeler | 2024-10-01 | 1 | -2/+1 |
| | |||||
* | Replace strlcpy with strncpy (maybe later) | Joseph Hunkeler | 2024-09-30 | 1 | -1/+1 |
| | |||||
* | Replace sprintf with snprintf | Joseph Hunkeler | 2024-09-30 | 1 | -1/+1 |
| | |||||
* | Shorten comment | Joseph Hunkeler | 2024-09-30 | 1 | -2/+3 |
| | |||||
* | Fix leak | Joseph Hunkeler | 2024-09-27 | 1 | -1/+1 |
| | | | | | * When strdup fails and the temporary file handle is open, close the handle and die. * reported by @kmacdonald-stsci | ||||
* | Fix missing COMMAND string in the log header | Joseph Hunkeler | 2024-09-27 | 1 | -0/+10 |
| | |||||
* | mp_pool_init(): return NULL when ident argument is NULL | Joseph Hunkeler | 2024-09-27 | 1 | -1/+2 |
| | | | | * reported by @kmacdonald-stsci | ||||
* | Show "Task is running" every X seconds, instead of X iterations | Joseph Hunkeler | 2024-09-27 | 1 | -6/+7 |
| | |||||
* | Terminate everything when forking fails | Joseph Hunkeler | 2024-09-27 | 1 | -1/+1 |
| | |||||
* | Move log_file path assignment into the child | Joseph Hunkeler | 2024-09-27 | 1 | -2/+0 |
| | |||||
* | "Task started" message is redundant | Joseph Hunkeler | 2024-09-27 | 1 | -1/+2 |
| | |||||
* | Spacing | Joseph Hunkeler | 2024-09-26 | 1 | -0/+1 |
| | |||||
* | Do not fork immediately after a task is created | Joseph Hunkeler | 2024-09-26 | 1 | -4/+0 |
| | |||||
* | Zero log_file to avoid garbage output | Joseph Hunkeler | 2024-09-26 | 1 | -0/+1 |
| | |||||
* | Implement cmd and working_dir | Joseph Hunkeler | 2024-09-26 | 1 | -16/+13 |
| | |||||
* | Remove usage of POSIX semaphores | Joseph Hunkeler | 2024-09-26 | 1 | -26/+9 |
| | |||||
* | Fix incorrect failure count | Joseph Hunkeler | 2024-09-18 | 1 | -1/+2 |
| | | | | * No longer adds the raw status value to the failure count. Just increment it instead. | ||||
* | Comment get_task_duration | Joseph Hunkeler | 2024-09-18 | 1 | -0/+2 |
| | |||||
* | Move process status checks outside of the if-statement | Joseph Hunkeler | 2024-09-18 | 1 | -10/+18 |
| | | | | | * Reverse the order of checks so signals actually get reported when they occur * Changed "Task finished" to "Task ended". "Finished" sounds more like "success" and might get confusing when an error occurs | ||||
* | mp_pool_kill marks PIDs as unused | Joseph Hunkeler | 2024-09-18 | 1 | -0/+2 |
| | |||||
* | Rename mp_task to mp_pool_task | Joseph Hunkeler | 2024-09-18 | 1 | -1/+1 |
| | |||||
* | Bugfix: log_show_contents() did not close FILE pointer | Joseph Hunkeler | 2024-09-18 | 1 | -0/+1 |
| | |||||
* | Remove short circuit test code | Joseph Hunkeler | 2024-09-18 | 1 | -28/+1 |
| | | | | * Remove exmain() and dead comments from main() | ||||
* | Fix test status expectation | Joseph Hunkeler | 2024-09-18 | 1 | -2/+1 |
| | | | | * Fix child not returning result of execvp(). task->status is for program status, not fork() status. | ||||
* | Fix format spacing | Joseph Hunkeler | 2024-09-18 | 1 | -1/+1 |
| | |||||
* | Add pool summary and elapsed time output | Joseph Hunkeler | 2024-09-18 | 1 | -0/+48 |
| | | | | | | | * Add get_task_duration() * Add get_pool_show_summary() * Add signaled_by member to MultiProcessingTask * Add time_data member to MultiProcessingTask for duration tracking | ||||
* | Wait for signaled processes to hang up | Joseph Hunkeler | 2024-09-18 | 1 | -1/+5 |
| | | | | * Only initiate a kill if we have more than one process. The current process is already failed out, no need to terminate it again. | ||||
* | Set task status to -1 by default | Joseph Hunkeler | 2024-09-18 | 1 | -0/+3 |
| | |||||
* | Add comments, remove dead code | Joseph Hunkeler | 2024-09-18 | 1 | -2/+24 |
| | |||||
* | Break parent/child calls into static functions | Joseph Hunkeler | 2024-09-18 | 1 | -71/+86 |
| | |||||
* | Split mp_task into to functions | Joseph Hunkeler | 2024-09-18 | 1 | -63/+74 |
| | |||||
* | Guard against overrun | Joseph Hunkeler | 2024-09-18 | 1 | -2/+6 |
| | |||||
* | Add multiprocessing.h to core.h | Joseph Hunkeler | 2024-09-18 | 1 | -1/+1 |
| | | | | * Remove multiprocessing.h from other files | ||||
* | Fix sem_open initial state | Joseph Hunkeler | 2024-09-18 | 1 | -27/+14 |
| | | | | | | * Move slot->gate assignment to mp_pool_task() * Remove mmap() to slot->gate. * Change type of ident and log_root variables for the sake of easy (fewer maps) | ||||
* | Darwin: Remove mmap MAP_POPULATE flag | Joseph Hunkeler | 2024-09-18 | 1 | -3/+3 |
| | |||||
* | Darwin portability: Use sem_open and sem_close instead of sem_init and ↵ | Joseph Hunkeler | 2024-09-18 | 1 | -4/+7 |
| | | | | sem_destroy | ||||
* | Fixing headers | Joseph Hunkeler | 2024-09-18 | 1 | -2/+0 |
| | |||||
* | Move guard_ macros to core_mem.h | Joseph Hunkeler | 2024-09-18 | 1 | -0/+373 |
* Move core_mem.h below config.h |