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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyosal
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: python Operating System Abstract Layer
5
5
  Author-email: "J. Arrizza" <cppgent0@gmail.com>
6
6
  Maintainer-email: "J. Arrizza" <cppgent0@gmail.com>
@@ -19,7 +19,7 @@ dependencies = [
19
19
 
20
20
  # common values
21
21
  name = 'pyosal'
22
- version = '0.2.1'
22
+ version = '0.2.2'
23
23
  requires-python = '>=3.9'
24
24
  authors = [{ name = 'J. Arrizza', email = 'cppgent0@gmail.com' }]
25
25
  maintainers = [
@@ -6,4 +6,4 @@ from dataclasses import dataclass
6
6
  @dataclass
7
7
  class ConstantsVersion:
8
8
  ## current App version
9
- version = '0.2.1'
9
+ version = '0.2.2'
@@ -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.010)
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
- # "kill" to terminate the process externally
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
  #
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyosal
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: python Operating System Abstract Layer
5
5
  Author-email: "J. Arrizza" <cppgent0@gmail.com>
6
6
  Maintainer-email: "J. Arrizza" <cppgent0@gmail.com>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes