Skip to content

Commit

Permalink
Ignore SIGCHLD to avoid leaving zombie processes
Browse files Browse the repository at this point in the history
  • Loading branch information
affenull2345 committed Jan 17, 2024
1 parent c752e29 commit e5cd25e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cobbler_tftp/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import os
from pathlib import Path
from signal import SIGTERM
from signal import SIGCHLD, SIGTERM
from typing import List, Optional

import click
Expand Down Expand Up @@ -87,7 +87,7 @@ def start(
)
if application_settings.is_daemon:
click.echo("Starting daemon...")
with DaemonContext():
with DaemonContext(signal_map={SIGCHLD: None}):
# All previously open file descriptors are invalid now.
# Files and connections needed for the daemon should be opened
# in run_server or listed in the files_preserve option
Expand Down

0 comments on commit e5cd25e

Please sign in to comment.