]> git.proxmox.com Git - mirror_lxc.git/commitdiff
criu: do_restore()
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 24 Feb 2018 19:12:16 +0000 (20:12 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sat, 24 Feb 2018 20:38:42 +0000 (21:38 +0100)
thread-safety: s/exit()/_exit()/g

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/criu.c

index 0a2bf1a21063394b499b6808c9aa89f1a410795f..d675b54502c60f02432099f68ad62328790a0126 100644 (file)
@@ -923,7 +923,7 @@ out_unlock:
 }
 
 /* do_restore never returns, the calling process is used as the monitor process.
- * do_restore calls exit() if it fails.
+ * do_restore calls _exit() if it fails.
  */
 static void do_restore(struct lxc_container *c, int status_pipe, struct migrate_opts *opts, char *criu_version)
 {
@@ -1140,7 +1140,7 @@ static void do_restore(struct lxc_container *c, int status_pipe, struct migrate_
                if (ret)
                        lxc_abort(c->name, handler);
                lxc_fini(c->name, handler);
-               exit(ret);
+               _exit(ret);
        }
 
 out_fini_handler:
@@ -1165,7 +1165,7 @@ out:
                close(status_pipe);
        }
 
-       exit(1);
+       _exit(EXIT_FAILURE);
 }
 
 static int save_tty_major_minor(char *directory, struct lxc_container *c, char *tty_id, int len)