[CRIU] [PATCH] page-server: allow to execute page-server in the background
Pavel Emelyanov
xemul at parallels.com
Mon May 20 06:38:40 EDT 2013
> @@ -233,6 +233,9 @@ out:
> if (ask < 0)
> return -1;
>
> + if (daemon_mode)
> + daemon(0, 0);
> +
> pr_info("Accepted connection from %s:%u\n",
> inet_ntoa(caddr.sin_addr),
> (int)ntohs(caddr.sin_port));
> diff --git a/test/zdtm.sh b/test/zdtm.sh
> index ace17b6..a82bf97 100755
> --- a/test/zdtm.sh
> +++ b/test/zdtm.sh
> @@ -349,7 +349,7 @@ EOF
> mkdir -p $ddump
>
> if [ $PAGE_SERVER -eq 1 ]; then
> - $CRTOOLS page-server -D $ddump -o page_server.log -v 4 --port $PS_PORT &
> + $CRTOOLS page-server -D $ddump -o page_server.log -v 4 --port $PS_PORT
> PS_PID=$!
> opts="--page-server --address 127.0.0.1 --port $PS_PORT"
> fi
>
I bet this doesn't help.
1. No --daemon in zdtm.sh call, thus page server doesn't daemonize
2. Even if it (--daemon opt) was -- daemonization occurs _after_ accepted
connection, while this new connection may happen only during dump command
Thanks,
Pavel
More information about the CRIU
mailing list