By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,040 Members | 1,815 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,040 IT Pros & Developers. It's quick & easy.

sigaction, muxex, condition variable

P: n/a
In a Posix compliant multi-threaded C++ program,
I would like to use sigaction() to catch SIGTERM,
and from my signal handler, lock a mutex, and
broadcast a condition variable. Is this ok?

Thanks,
Mike.

Aug 8 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Mike - EMAIL IGNORED wrote:
In a Posix compliant multi-threaded C++ program,
I would like to use sigaction() to catch SIGTERM,
and from my signal handler, lock a mutex, and
broadcast a condition variable. Is this ok?
You might be better off asking in a Posix newsgroup.
Aug 8 '07 #2

P: n/a
On Wed, 08 Aug 2007 18:12:07 -0400, Victor Bazarov wrote:
Mike - EMAIL IGNORED wrote:
>In a Posix compliant multi-threaded C++ program,
I would like to use sigaction() to catch SIGTERM,
and from my signal handler, lock a mutex, and
broadcast a condition variable. Is this ok?

You might be better off asking in a Posix newsgroup.
Can you suggest a newsgroup?

Aug 9 '07 #3

P: n/a
Mike - EMAIL IGNORED wrote:
On Wed, 08 Aug 2007 18:12:07 -0400, Victor Bazarov wrote:
>Mike - EMAIL IGNORED wrote:
>>In a Posix compliant multi-threaded C++ program,
I would like to use sigaction() to catch SIGTERM,
and from my signal handler, lock a mutex, and
broadcast a condition variable. Is this ok?

You might be better off asking in a Posix newsgroup.

Can you suggest a newsgroup?
One with "posix" in its name, perhaps? Or maybe one
dedicated to your OS...
Aug 9 '07 #4

P: n/a
joe
On Aug 8, 8:21 pm, Mike - EMAIL IGNORED <m_d_berger_1...@yahoo.com>
wrote:
On Wed, 08 Aug 2007 18:12:07 -0400, Victor Bazarov wrote:
Mike - EMAIL IGNORED wrote:
In a Posix compliant multi-threaded C++ program,
I would like to use sigaction() to catch SIGTERM,
and from my signal handler, lock a mutex, and
broadcast a condition variable. Is this ok?
You might be better off asking in a Posix newsgroup.

Can you suggest a newsgroup?
I would consider asking in comp.programming.threads. They deal with
threading issues in many OSs.

joe

Aug 9 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.