Commits

Jason R. Coombs  committed a5b8571 Draft

Reindented to 78 character limit

  • Participants
  • Parent commits 8901eb8
  • Branches default

Comments (0)

Files changed (1)

File eggmonster/client/_em_emi.py

                 # We have four potential behaviours that we could implement
                 # here:
                 #
-                #   - wait for master return, then SIGKILL (previous behaviour)
+                #   - wait for master return, then SIGKILL (previous
+                #     behaviour)
                 #   - wait for master return, then SIGTERM
                 #   - SIGKILL immediately
                 #   - SIGTERM immediately (new behaviour)
                 #
                 # The previous behaviour worked best because it tried to give
-                # the largest level of uptime when a problem occurred. However,
+                # the largest level of uptime when a problem occurred.
+                # However,
                 # if you are running stateful and data storage services, you
                 # don't want this to happen. So SIGTERMs might be nice, except
                 # that the wait for clean termination could cause clashes with
         'm' if spawn_app else 'M', # monitored by eggmaster
     ])
 
-    entry_point, env, pkg_info, buf, sock = get_config(HOSTNAME, app_name, num, flags)
+    entry_point, env, pkg_info, buf, sock = get_config(HOSTNAME, app_name,
+        num, flags)
 
     packages.load_dependencies(pkg_info, packages.install)
     if not master_uid == os.getuid():
     # If the below line returns (and does not raise a SystemExit), then this
     # means we are the master emi process and we communicate between the
     # eggmaster and forked child process.
-    child = run_app(pkg_info, entry_point, env, num, spawn_app,
-        extra_args)
+    child = run_app(pkg_info, entry_point, env, num, spawn_app, extra_args)
 
     # This will communicate between the Eggmaster and the child process.
     thread = threading.Thread(target=process_server_commands,
     thread.setDaemon(True)
     thread.start()
 
-    # If the parent process is sent the terminate signal outside of Eggmonster,
-    # we want to send that signal to the child process.
+    # If the parent process is sent the terminate signal outside of
+    # Eggmonster, we want to send that signal to the child process.
     def handler(signum, frame):
         logger.debug('Being forced to terminate, telling child process '
             'to terminate too.')