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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user