2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

pidfile: Don't push opts.pidfile as write_pidfile arg

opts are criu-wide available.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2013-11-20 14:26:41 +04:00
parent 0b5b2f9906
commit c3b9448cf7
5 changed files with 7 additions and 7 deletions

View File

@@ -987,7 +987,7 @@ static inline int fork_with_pid(struct pstree_item *item)
pid = ret;
ret = write_pidfile(opts.pidfile, pid);
ret = write_pidfile(pid);
if (ret < 0) {
pr_perror("Can't write pidfile");
kill(pid, SIGKILL);