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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Tue, 29 Aug 2006 19:45:15 -0600
From:	Robert Hancock <hancockr@...w.ca>
To:	Shrikrishna Khare <shri.khare@...il.com>,
	linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: Multithreading and signals on linux

Shrikrishna Khare wrote:
> Hi,
> 
>     Am using pthread_kill to send SIGUSR1 from thread t1 to thread t2.
> However, I am unable to have "different" signal handlers for threads t1
> and t2 for same signal SIGUSR1.
>     I have ensured that I set the signal handler for t1 and t2
> separately in different functions. Could anyone please tell me if I am
> missing on something?

The signal will be handled in the thread specified, however signal 
handlers are global to the process. You cannot have different signal 
handlers for different threads in the same process. This is the way 
POSIX pthreads are specified to work.

-- 
Robert Hancock      Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@...pamshaw.ca
Home Page: http://www.roberthancock.com/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ