bin/75258: [patch] dd(1) has not async signal safe interrupt
handlers
Maxim Konovalov
maxim at macomnet.ru
Sun Dec 19 07:20:45 PST 2004
The following reply was made to PR bin/75258; it has been noted by GNATS.
From: Maxim Konovalov <maxim at macomnet.ru>
To: "Oleg V. Nauman" <oleg at reis.zp.ua>
Cc: bug-followup at 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
More information about the freebsd-bugs
mailing list