Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Dec 2004 15:20:29 GMT
From:      Maxim Konovalov <maxim@macomnet.ru>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/75258: [patch] dd(1) has not async signal safe interrupt handlers
Message-ID:  <200412191520.iBJFKT8n079346@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/75258; it has been noted by GNATS.

From: Maxim Konovalov <maxim@macomnet.ru>
To: "Oleg V. Nauman" <oleg@reis.zp.ua>
Cc: bug-followup@freebsd.org
Subject: Re: bin/75258: [patch] dd(1) has not async signal safe interrupt
 handlers
Date: Sun, 19 Dec 2004 18:11:06 +0300 (MSK)

 [...]
 > >Description:
 > 	dd(1) uses not safe interrupt handlers, they may leads to
 > strange problems with dd
 
 Are you sure?  Do you have a testcase?
 
 > >How-To-Repeat:
 >
 > 	man 2 sigaction
 
 Well, stdio(3) is not signal-safe in general but it seems for me
 summary() does not manipulate with the internal state of any file
 descriptors (it uses write(2)) and should be safe.
 
 Browseing the commit history says the same.
 
 [...]
 > +int need_summary;
 
 This should be volatile sig_atomic_t.
 
 -- 
 Maxim Konovalov



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412191520.iBJFKT8n079346>