bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Replacement for the sigs_to_ignore hack in timeout.c


From: Andreas Schwab
Subject: Re: [PATCH] Replacement for the sigs_to_ignore hack in timeout.c
Date: Sat, 11 Oct 2008 21:17:11 +0200
User-agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux)

Giuseppe Scrivano <address@hidden> writes:

> Andreas Schwab <address@hidden> 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, address@hidden
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."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]