pyosal 0.2.1__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyosal-0.2.1/src/pyosal.egg-info → pyosal-0.2.2}/PKG-INFO +1 -1
- {pyosal-0.2.1 → pyosal-0.2.2}/pyproject.toml +1 -1
- {pyosal-0.2.1 → pyosal-0.2.2}/src/pyosal/constants_version.py +1 -1
- {pyosal-0.2.1 → pyosal-0.2.2}/src/pyosal/pyosal.py +6 -3
- {pyosal-0.2.1 → pyosal-0.2.2/src/pyosal.egg-info}/PKG-INFO +1 -1
- {pyosal-0.2.1 → pyosal-0.2.2}/LICENSE.txt +0 -0
- {pyosal-0.2.1 → pyosal-0.2.2}/MANIFEST.in +0 -0
- {pyosal-0.2.1 → pyosal-0.2.2}/README.md +0 -0
- {pyosal-0.2.1 → pyosal-0.2.2}/setup.cfg +0 -0
- {pyosal-0.2.1 → pyosal-0.2.2}/src/pyosal/__init__.py +0 -0
- {pyosal-0.2.1 → pyosal-0.2.2}/src/pyosal/constants.py +0 -0
- {pyosal-0.2.1 → pyosal-0.2.2}/src/pyosal.egg-info/SOURCES.txt +0 -0
- {pyosal-0.2.1 → pyosal-0.2.2}/src/pyosal.egg-info/dependency_links.txt +0 -0
- {pyosal-0.2.1 → pyosal-0.2.2}/src/pyosal.egg-info/requires.txt +0 -0
- {pyosal-0.2.1 → pyosal-0.2.2}/src/pyosal.egg-info/top_level.txt +0 -0
|
@@ -468,11 +468,11 @@ class PyOsal(metaclass=_PyOsalMeta):
|
|
|
468
468
|
print(f'pyosal._kill_alt_process_tree: pid={pid} does not exist')
|
|
469
469
|
continue
|
|
470
470
|
proc = psutil.Process(pid)
|
|
471
|
-
# terminate does not work in windows
|
|
471
|
+
# terminate does not work in windows, must use kill
|
|
472
472
|
proc.kill()
|
|
473
473
|
if 'timed' in self._debug:
|
|
474
474
|
print(f'pyosal._kill_alt_process_tree: pid={pid} killed')
|
|
475
|
-
time.sleep(0.
|
|
475
|
+
time.sleep(0.100)
|
|
476
476
|
return rc
|
|
477
477
|
|
|
478
478
|
# -------------------
|
|
@@ -517,7 +517,7 @@ class PyOsal(metaclass=_PyOsalMeta):
|
|
|
517
517
|
## kill a POSIX process
|
|
518
518
|
# @param pid the process id to kill
|
|
519
519
|
# @param action "terminate" to ask process to terminate itself.
|
|
520
|
-
#
|
|
520
|
+
# "kill" to terminate the process externally
|
|
521
521
|
# @return None
|
|
522
522
|
def _kill_process(self, pid, action):
|
|
523
523
|
try:
|
|
@@ -533,6 +533,9 @@ class PyOsal(metaclass=_PyOsalMeta):
|
|
|
533
533
|
cmd = ['sudo', 'kill', '-9' if action == 'kill' else '-15', str(pid.pid)]
|
|
534
534
|
subprocess.run(cmd, check=False)
|
|
535
535
|
|
|
536
|
+
# give it time to clean up
|
|
537
|
+
time.sleep(0.100)
|
|
538
|
+
|
|
536
539
|
# -------------------
|
|
537
540
|
## run a command in a subprocess
|
|
538
541
|
#
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|