Skip to content

Commit

Permalink
Ignore the USR1 signal as we don't want to quit if this is received
Browse files Browse the repository at this point in the history
  • Loading branch information
woodcoder committed May 14, 2024
1 parent 1f7674a commit 221264f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions media.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@
import sys
import os
import pydbus
import signal
from gi.repository import GLib

# ignore the SIGUSR1 signal, we don't want to quit if we get this
def sigusr1_helper(*args):
pass
signal.signal(signal.SIGUSR1, sigusr1_helper)


def stringify(enc):
"""Turn NUL-terminated array-of-int into a str"""
Expand Down

0 comments on commit 221264f

Please sign in to comment.