lxc_set_state(name, handler, STOPPING);
lxc_set_state(name, handler, STOPPED);
+ /* reset mask set by setup_sigchld_fd */
+ if (sigprocmask(SIG_SETMASK, &handler->oldmask, NULL))
+ WARN("failed to restore sigprocmask");
+
lxc_delete_console(&handler->conf->console);
lxc_delete_tty(&handler->conf->tty_info);
free(handler->name);
while (waitpid(handler->pid, &status, 0) < 0 && errno == EINTR)
continue;
- if (sigprocmask(SIG_SETMASK, &handler->oldmask, NULL))
- WARN("failed to restore sigprocmask");
-
err = lxc_error_set_and_log(handler->pid, status);
out_fini:
lxc_unlink_nsgroup(name);