Skip to content

Commit

Permalink
Merge pull request #1401 from garberg/nipapd_multiproc_fg
Browse files Browse the repository at this point in the history
Fork also when running in foreground
  • Loading branch information
garberg authored Oct 8, 2024
2 parents 012db19 + 0a4c5cf commit 64cde37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nipap/nipapd
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ if __name__ == '__main__':
except:
pass

# pre-fork if we are not running in foreground
if not cfg.getboolean('nipapd', 'foreground') and num_forks is not False:
# pre-fork unless explicitly disabled
if num_forks is not False:
# default is to fork as many processes as there are cores
tornado.process.fork_processes(num_forks)

Expand Down

0 comments on commit 64cde37

Please sign in to comment.