Skip to content

Commit

Permalink
Create the sock_dir on process creation before changing user
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Zhestkov authored and Victor Zhestkov committed Apr 12, 2023
1 parent b4e5c1d commit c32a4dc
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions saline/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,6 @@ def start(self):
Start the main Saline routine
"""

sock_dir = self.opts["sock_dir"]
if not os.path.isdir(sock_dir):
try:
os.makedirs(sock_dir, 0o755)
except OSError as exc:
log.error("Could not create SOCK_DIR: %s", exc)

with default_signals(signal.SIGINT, signal.SIGTERM):
log.info("Creating process manager")
self.process_manager = ProcessManager(wait_for_kill=5)
Expand Down

0 comments on commit c32a4dc

Please sign in to comment.