[CRIU] [PATCH 6/6] unux: Make --external support --ext-unix-sk
Cyrill Gorcunov
gorcunov at gmail.com
Tue Sep 20 07:06:29 PDT 2016
On Tue, Sep 20, 2016 at 04:27:10PM +0300, Pavel Emelyanov wrote:
...
>
> int unix_sk_id_add(ino_t ino)
> {
> - struct unix_sk_exception *unix_sk;
> + char *e_str;
>
> - /* TODO: validate inode here? */
> -
> - unix_sk = xmalloc(sizeof *unix_sk);
> - if (unix_sk == NULL)
> - return -1;
> - unix_sk->unix_sk_ino = ino;
> - list_add_tail(&unix_sk->unix_sk_list, &opts.ext_unixsk_ids);
> -
> - return 0;
> + e_str = xmalloc(20);
if (!e_str)
return -ENOMEM;
> + snprintf(e_str, 20, "unix[%lu]", ino);
> + return add_external(e_str);
> }
More information about the CRIU
mailing list