Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
saramsey committed Oct 19, 2023
1 parent 1b83460 commit fa52684
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import signal
import atexit
import traceback
import setproctitle


def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs)
Expand Down Expand Up @@ -98,6 +99,7 @@ def main():
if pid == 0: # I am the child process
sys.stdout = open('/dev/null', 'w')
sys.stdin = open('/dev/null', 'r')
setproctitle.setproctitle("python3 ARAX_background_tasker::run_tasks")
eprint("Starting background tasker in a child process")
try:
ARAXBackgroundTasker().run_tasks(local_config)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import signal
import atexit
import traceback
import setproctitle


def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs)
Expand Down Expand Up @@ -99,6 +100,7 @@ def main():
if pid == 0: # I am the child process
sys.stdout = open('/dev/null', 'w')
sys.stdin = open('/dev/null', 'r')
setproctitle.setproctitle("python3 ARAX_background_tasker::run_tasks")
eprint("Starting background tasker in a child process")
try:
ARAXBackgroundTasker().run_tasks(local_config)
Expand Down

0 comments on commit fa52684

Please sign in to comment.