Return nil if container has no init

This commit is contained in:
Andre Nathan 2013-12-05 10:46:38 -02:00
parent a613d6ffb0
commit 8d2df83b43

View file

@ -126,7 +126,8 @@ container_init_pid(VALUE self)
Data_Get_Struct(self, struct container_data, data);
pid = data->container->init_pid(data->container);
if (pid < 0)
return Qnil;
return INT2NUM(pid);
}