Skip to content

Commit

Permalink
Merge pull request #28 from efabless/disable_setgpid
Browse files Browse the repository at this point in the history
Disabled the use of os.setpgid()
  • Loading branch information
RTimothyEdwards authored Mar 12, 2024
2 parents 7f2846a + 8818cc1 commit b5f39cc
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions cace/cace_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,8 @@ def stop_sims(self):
)

# Return all individual "Simulate" buttons to normal text
for simbutton in self.simbuttons.keys():
for simbname in self.simbuttons.keys():
simbutton = self.simbuttons[simbname]
simbutton.configure(text='Simulate')

def edit_param(self, param):
Expand Down Expand Up @@ -992,7 +993,13 @@ def sim_param(self, name):

# Diagnostic
print('Simulating parameter ' + name)
runtime_options['pid'] = os.getpid()
# NOTE: Commenting out the following line prevents the use of
# the process ID to set a common group ID that can be used to
# stop simulations by sending a kill signal to all threads.
# The method is not working, and on some systems os.setpgid()
# will not run.
#
# runtime_options['pid'] = os.getpid()
p = multiprocessing.Process(
target=self.cace_process,
args=(
Expand Down

0 comments on commit b5f39cc

Please sign in to comment.