ryantimwilson / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone
7e7c9f
From 65fb1fbdcf80b77378bfea8962611eeb8220cb28 Mon Sep 17 00:00:00 2001
2f7d91
From: Evgeny Vereshchagin <evvers@ya.ru>
2f7d91
Date: Thu, 20 Oct 2016 13:18:12 +0000
2f7d91
Subject: [PATCH] tests: add test that journald keeps fds over termination by
2f7d91
 signal
2f7d91
2f7d91
This test fails before previous commit, and passes with it.
2f7d91
2f7d91
(cherry picked from commit bff653e3970bb79832568ae86b095ee530b62302)
2f7d91
(cherry picked from commit ee8f69ae5ddac6f05c56ea7dbcb76fbbb2e355ee)
7e7c9f
Resolves: #1757704
2f7d91
---
2f7d91
 test/TEST-04-JOURNAL/test-journal.sh | 8 ++++++++
2f7d91
 1 file changed, 8 insertions(+)
2f7d91
2f7d91
diff --git a/test/TEST-04-JOURNAL/test-journal.sh b/test/TEST-04-JOURNAL/test-journal.sh
2f7d91
index 701b0cf724..d0b05c46d6 100755
2f7d91
--- a/test/TEST-04-JOURNAL/test-journal.sh
2f7d91
+++ b/test/TEST-04-JOURNAL/test-journal.sh
2f7d91
@@ -22,5 +22,13 @@ sleep 3
2f7d91
 systemctl stop forever-print-hola
2f7d91
 [[ ! -f "/i-lose-my-logs" ]]
2f7d91
 
2f7d91
+# https://github.com/systemd/systemd/issues/4408
2f7d91
+rm -f /i-lose-my-logs
2f7d91
+systemctl start forever-print-hola
2f7d91
+sleep 3
2f7d91
+systemctl kill --signal=SIGKILL systemd-journald
2f7d91
+sleep 3
2f7d91
+[[ ! -f "/i-lose-my-logs" ]]
2f7d91
+
2f7d91
 touch /testok
2f7d91
 exit 0