lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:   Mon, 30 May 2022 17:30:36 +0800
From:   Hui Zhu <teawater@...il.com>
To:     wufengguang@...wei.com, linux-kernel@...r.kernel.org
Cc:     Hui Zhu <teawater@...group.com>
Subject: [PATCH for vm-scalability] usemem.c: do_units: Add output before sigsuspend

From: Hui Zhu <teawater@...group.com>

It is hard to make sure that the process is waiting for the signal
without any output.
This commit add output before sigsuspend in do_units to handle this
issue.

Signed-off-by: Hui Zhu <teawater@...group.com>
---
 usemem.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/usemem.c b/usemem.c
index 3b4d207..2f100e1 100644
--- a/usemem.c
+++ b/usemem.c
@@ -800,6 +800,8 @@ long do_units(void)
 
 	if (opt_write_signal_read) {
 		sigset_t set;
+		printf("Process %d is waiting signal\n", getpid());
+		fflush(stdout);
 		sigfillset(&set);
 		sigdelset(&set, SIGUSR1);
 		sigsuspend(&set);
-- 
1.8.3.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ