Related articles |
---|
Instrumenting multithreaded applications legendre@u.arizona.edu (Matthew Legendre) (2003-01-21) |
Re: Instrumenting multithreaded applications nmm1@cus.cam.ac.uk (2003-01-25) |
Re: Instrumenting multithreaded applications mailbox@dmitry-kazakov.de (Dmitry A.Kazakov) (2003-01-25) |
Re: Instrumenting multithreaded applications jstracke@speakeasy.net (John Stracke) (2003-01-25) |
Re: Instrumenting multithreaded applications bobduff@World.std.com (Robert A Duff) (2003-01-25) |
Re: Instrumenting multithreaded applications bje@redhat.com (Ben Elliston) (2003-01-25) |
Re: Instrumenting multithreaded applications joachim_d@gmx.de (Joachim Durchholz) (2003-01-25) |
Re: Instrumenting multithreaded applications chase@world.std.com (David Chase) (2003-01-25) |
Re: Instrumenting multithreaded applications lex@cc.gatech.edu (Lex Spoon) (2003-01-25) |
Re: Instrumenting multithreaded applications idbaxter@semdesigns.com (Ira Baxter) (2003-01-26) |
From: | John Stracke <jstracke@speakeasy.net> |
Newsgroups: | comp.compilers |
Date: | 25 Jan 2003 00:49:32 -0500 |
Organization: | Compilers Central |
References: | 03-01-118 |
Keywords: | performance, testing, parallel |
Posted-Date: | 25 Jan 2003 00:49:32 EST |
Matthew Legendre wrote:
> The problem is that we may insert instrumentation into a signal handler.
Personally, my preference would be to get rid of the signal handler,
if at all possible. Signals make it really hard to write reliable
code, not least because they make system calls abort with EINTR.
Maybe you can check for EINTR every time you call a system call, but
can you be sure all your libraries are doing so?
In 1998, I found that fetchmail kept hanging every few days. I
looked, and found that it was using SIGALRM for its timeouts. I
converted it to pass a timeout to select() instead, and the problem
went away.
--
/=============================================================\
|John Stracke | http://www.thibault.org |HTML OK |
|Francois Thibault |========================================|
|East Kingdom |So what's the gene for belief in genetic|
|francis@thibault.org|determinism? |
Return to the
comp.compilers page.
Search the
comp.compilers archives again.