../lxc/utils.c ../lxc/utils.h
lxc_test_reboot_SOURCES = reboot.c
lxc_test_saveconfig_SOURCES = saveconfig.c
-lxc_test_share_ns_SOURCES = share_ns.c lxctest.h
+lxc_test_share_ns_SOURCES = share_ns.c \
+ lxctest.h \
+ ../lxc/compiler.h
lxc_test_shortlived_SOURCES = shortlived.c
lxc_test_shutdowntest_SOURCES = shutdowntest.c
lxc_test_snapshot_SOURCES = snapshot.c
#include "lxc/lxccontainer.h"
#include "lxctest.h"
+#include "../lxc/compiler.h"
struct thread_args {
int thread_id;
char inherited_net_ns[4096];
};
-void *ns_sharing_wrapper(void *data)
+__noreturn void *ns_sharing_wrapper(void *data)
{
int init_pid;
ssize_t ret;
c = lxc_container_new(name, NULL);
if (!c) {
lxc_error("Failed to create container \"%s\"\n", name);
- return NULL;
+ goto out_pthread_exit;
}
if (c->is_defined(c)) {
if (!c->destroy(c))
lxc_error("Failed to destroy container \"%s\"\n", name);
+out_pthread_exit:
pthread_exit(NULL);
- return NULL;
}
int main(int argc, char *argv[])