aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* mp_pool_init(): return NULL when ident argument is NULLJoseph Hunkeler2024-09-272-1/+3
| | | | * reported by @kmacdonald-stsci
* Squelch git's detached HEAD messageJoseph Hunkeler2024-09-271-1/+1
|
* Show "Task is running" every X seconds, instead of X iterationsJoseph Hunkeler2024-09-271-6/+7
|
* Terminate everything when forking failsJoseph Hunkeler2024-09-271-1/+1
|
* Move log_file path assignment into the childJoseph Hunkeler2024-09-271-2/+0
|
* "Task started" message is redundantJoseph Hunkeler2024-09-271-1/+2
|
* Only show a summary if a pool ran a jobJoseph Hunkeler2024-09-271-1/+4
|
* Add commentsJoseph Hunkeler2024-09-271-2/+22
|
* Fix testJoseph Hunkeler2024-09-261-2/+2
| | | | * Queuing a task does not fork anymore, so the default state is now UNUSED
* Remove more references to the semaphore "gate"Joseph Hunkeler2024-09-261-3/+0
|
* SpacingJoseph Hunkeler2024-09-261-0/+1
|
* Do not fork immediately after a task is createdJoseph Hunkeler2024-09-261-4/+0
|
* Zero log_file to avoid garbage outputJoseph Hunkeler2024-09-261-0/+1
|
* Code size: Consolidate pools into an arrayJoseph Hunkeler2024-09-261-31/+45
|
* Implement cmd and working_dirJoseph Hunkeler2024-09-263-19/+16
|
* Add cmd and working_dir members to MultiProcessingTask structureJoseph Hunkeler2024-09-261-0/+2
|
* Remove usage of POSIX semaphoresJoseph Hunkeler2024-09-262-27/+9
|
* Fix string op warningsJoseph Hunkeler2024-09-205-11/+17
| | | | * Fix unused-result warnings
* Die if the current working directory cannot be determinedJoseph Hunkeler2024-09-201-2/+8
|
* value can never be NULL here, and is initialized to zero. Use strcpy().Joseph Hunkeler2024-09-201-1/+1
|
* Replace strncpy with a raw loops to populate the delim_* arraysJoseph Hunkeler2024-09-201-5/+19
| | | | * I wasn't able to finesse the nelem argument in a way that prevents the compiler(s) from throwing warnings
* Add option to define _FORTIFY_SOURCE=1Joseph Hunkeler2024-09-201-3/+6
|
* Disable format-truncation and unused-result warnings in testsJoseph Hunkeler2024-09-201-2/+2
|
* Refactor structureJoseph Hunkeler2024-09-2015-2022/+2083
| | | | * Break delivery.c into smaller components
* Finish mp_pool_init() testadd-multiprocessingJoseph Hunkeler2024-09-201-8/+31
| | | | * Not sure what I was going to do with that data array, but whatever it was, it was wrong.
* Export all variables when sourcing conda's profile scriptsJoseph Hunkeler2024-09-201-1/+1
| | | | * This results in a fully activated environment; shell functions and all
* Fix a likely buffer overflowJoseph Hunkeler2024-09-181-1/+1
| | | | * The log_root is appended to log_file, and might exceed the defined length.
* Fix test code and expected values within test codeJoseph Hunkeler2024-09-181-1/+1
| | | | * Errant undo operation!
* Fix syntax issue in rt_generic.shJoseph Hunkeler2024-09-181-1/+1
| | | | * line 106: [: missing `]'
* More testsJoseph Hunkeler2024-09-181-0/+30
|
* Fix incorrect failure countJoseph Hunkeler2024-09-181-1/+2
| | | | * No longer adds the raw status value to the failure count. Just increment it instead.
* Comment get_task_durationJoseph Hunkeler2024-09-181-0/+2
|
* Move process status checks outside of the if-statementJoseph Hunkeler2024-09-181-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 unusedJoseph Hunkeler2024-09-181-0/+2
|
* Rename mp_task to mp_pool_taskJoseph Hunkeler2024-09-184-5/+5
|
* Bugfix: log_show_contents() did not close FILE pointerJoseph Hunkeler2024-09-181-0/+1
|
* Remove workaround.tox_posargsJoseph Hunkeler2024-09-181-1/+0
|
* Remove short circuit test codeJoseph Hunkeler2024-09-182-35/+1
| | | | * Remove exmain() and dead comments from main()
* Fix test status expectationJoseph Hunkeler2024-09-182-4/+3
| | | | * Fix child not returning result of execvp(). task->status is for program status, not fork() status.
* Fix format spacingJoseph Hunkeler2024-09-181-1/+1
|
* Implement mp_pool_show_summaryJoseph Hunkeler2024-09-181-3/+10
|
* Add pool summary and elapsed time outputJoseph Hunkeler2024-09-182-0/+60
| | | | | | | * 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 upJoseph Hunkeler2024-09-181-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 defaultJoseph Hunkeler2024-09-181-0/+3
|
* Add comments, remove dead codeJoseph Hunkeler2024-09-181-2/+24
|
* Break parent/child calls into static functionsJoseph Hunkeler2024-09-181-71/+86
|
* Add test_multiprocessing.cJoseph Hunkeler2024-09-181-0/+73
|
* Split mp_task into to functionsJoseph Hunkeler2024-09-181-63/+74
|
* Guard against overrunJoseph Hunkeler2024-09-181-2/+6
|
* Update example configJoseph Hunkeler2024-09-181-0/+13
|