[systemd-devel] [PATCH 01/12] fsckd daemon for inter-fsckd communication

Didier Roche didier.roche at canonical.com
Mon Feb 2 02:22:20 PST 2015


Le 31/01/2015 01:34, Zbigniew Jędrzejewski-Szmek a écrit :
> On Thu, Jan 29, 2015 at 06:37:53PM +0100, Didier Roche wrote:
>> Le 28/01/2015 15:37, Zbigniew Jędrzejewski-Szmek a écrit :
>>> On Wed, Jan 28, 2015 at 02:20:40PM +0100, Didier Roche wrote:
>>> \ No newline at end of file
>>> diff --git a/src/fsckd/fsckd.c b/src/fsckd/fsckd.c
>>> new file mode 100644
>>> index 0000000..3059c68
>>> --- /dev/null
>>> +++ b/src/fsckd/fsckd.c
>>> @@ -0,0 +1,295 @@
>>> +/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
>>> +
>>>> +}
>>>> +
>>>> +static int handle_requests(int socket_fd) {
>>>> +        Clients *first = NULL;
>>>> +        usec_t last_activity = 0;
>>>> +        int numdevices = 0, clear = 0;
>>>> +        double percent = 100;
>>>> +        _cleanup_fclose_ FILE *console = NULL;
>>> NULL not necessary (and you don't have it in similar circumstances above ;))
>> So, after the discussion on the mailing list and to be more future
>> proof, I went to recheck, but I'm afraid that I didn't find any
>> place where I have some _cleanup_* without initializing to NULL? Did
>> I get it wrong?
> fsckd_fd variable.
Right, done with -1 as init. Thanks!

Didier



More information about the systemd-devel mailing list