Giuseppe Scrivano <[EMAIL PROTECTED]> writes:

> Andreas Schwab <[EMAIL PROTECTED]> writes:
>>> +  memset (&sa, 0, sizeof sa);
>>> +  sigemptyset (&sa.sa_mask);
>>
>> I don't think you need the memset.
>
>
> and how reset the struct without a memset or using "sa = {0,}" as
> Pádraig suggested?

You only need to additionally initialize sa_flags, the rest is already
initialized and doesn't need to be set twice.

Andreas.

-- 
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to