Skip to content

Commit c32a4dc

Browse files
Victor ZhestkovVictor Zhestkov
authored andcommitted
Create the sock_dir on process creation before changing user
1 parent b4e5c1d commit c32a4dc

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

saline/process.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,6 @@ def start(self):
5757
Start the main Saline routine
5858
"""
5959

60-
sock_dir = self.opts["sock_dir"]
61-
if not os.path.isdir(sock_dir):
62-
try:
63-
os.makedirs(sock_dir, 0o755)
64-
except OSError as exc:
65-
log.error("Could not create SOCK_DIR: %s", exc)
66-
6760
with default_signals(signal.SIGINT, signal.SIGTERM):
6861
log.info("Creating process manager")
6962
self.process_manager = ProcessManager(wait_for_kill=5)

0 commit comments

Comments
 (0)