Tests: environment: use a context manager to restore original signal handler
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 3 May 2023 18:14:51 +0000 (14:14 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 15 Jun 2023 15:55:18 +0000 (11:55 -0400)
commit0ac0f70ece24bdec1734952ee420adc82e55a818
tree7d62c67ad7c3e6d9dc66af76f61034b86c76d0c3
parent799462ffd674d972289608c72b3f271a5839677a
Tests: environment: use a context manager to restore original signal handler

The original signal handler for SIGUSR1 was not restored when launching
the session daemon. This didn't cause any issue, but is unexpected and
would have been a real head scratcher if we wanted to use it later.

To prevent us from forgetting to restore signals when using a
_SignalWaitQueue, a context manager is provided to handle that
automatically.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I86599846ad2000af5d1e3c5cb2a0a73fb1c91455
tests/utils/lttngtest/environment.py
This page took 0.025429 seconds and 4 git commands to generate.