Return nil if container has no init
This commit is contained in:
parent
a613d6ffb0
commit
8d2df83b43
|
@ -126,7 +126,8 @@ container_init_pid(VALUE self)
|
||||||
|
|
||||||
Data_Get_Struct(self, struct container_data, data);
|
Data_Get_Struct(self, struct container_data, data);
|
||||||
pid = data->container->init_pid(data->container);
|
pid = data->container->init_pid(data->container);
|
||||||
|
if (pid < 0)
|
||||||
|
return Qnil;
|
||||||
return INT2NUM(pid);
|
return INT2NUM(pid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue