Skip to content

Commit

Permalink
fix(LinstorSR): sync fork-load-daemon with http-nbd-transfer (v1.5.0)
Browse files Browse the repository at this point in the history
Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.fr>
  • Loading branch information
Wescoeur committed Nov 19, 2024
1 parent a012ea2 commit 2ddbe5f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/fork-log-daemon
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
#!/usr/bin/env python3

import os
import select
import signal
import subprocess
import sys
import syslog

def main():
process = subprocess.Popen(sys.argv[1:], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
process = subprocess.Popen(
sys.argv[1:],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
universal_newlines=True,
env=dict(os.environ, PYTHONUNBUFFERED='1')
)
signal.signal(signal.SIGTERM, signal.SIG_IGN)
write_to_stdout = True

Expand Down

0 comments on commit 2ddbe5f

Please sign in to comment.