blob: 0e7264574fb36d5dabdbb6f25316869603369c88 [file] [log] [blame]
Brad Bishop96ff1982019-08-19 13:50:42 -04001From f4fafbdffae3a63c81f65cef98c72dda26283e06 Mon Sep 17 00:00:00 2001
Brad Bishop6e60e8b2018-02-01 10:27:11 -05002From: Dengke Du <dengke.du@windriver.com>
3Date: Wed, 8 Feb 2017 16:17:17 +0800
Brad Bishop96ff1982019-08-19 13:50:42 -04004Subject: [PATCH] Fix test_proc_kill hanging
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05005
6Sometimes the signal is delivered to memcg_process before the framework took
7into consideration its pid entered in the tasks. Fixed by delaying the signal
8send command.
9
Brad Bishop96ff1982019-08-19 13:50:42 -040010Upstream-Status: Pending
11
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050012Signed-off-by: George Nita <george.nita@enea.com>
Brad Bishop6e60e8b2018-02-01 10:27:11 -050013Signed-off-by: Dengke Du <dengke.du@windriver.com>
Brad Bishop6e60e8b2018-02-01 10:27:11 -050014---
15 testcases/kernel/controllers/memcg/functional/memcg_lib.sh | 1 +
16 1 file changed, 1 insertion(+)
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050017
18diff --git a/testcases/kernel/controllers/memcg/functional/memcg_lib.sh b/testcases/kernel/controllers/memcg/functional/memcg_lib.sh
Brad Bishop96ff1982019-08-19 13:50:42 -040019index aadaae4..deea5d6 100755
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050020--- a/testcases/kernel/controllers/memcg/functional/memcg_lib.sh
21+++ b/testcases/kernel/controllers/memcg/functional/memcg_lib.sh
Brad Bishop19323692019-04-05 15:28:33 -040022@@ -291,6 +291,7 @@ test_proc_kill()
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050023 pid=$!
Brad Bishop6e60e8b2018-02-01 10:27:11 -050024 TST_CHECKPOINT_WAIT 0
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050025 echo $pid > tasks
26+ sleep 1
27
Brad Bishop6e60e8b2018-02-01 10:27:11 -050028 signal_memcg_process $pid $3
29
30--
312.7.4
32