From 5f9f20f15006fab8065780eda52f32f14bb3935c Mon Sep 17 00:00:00 2001 From: Ryo Nakamura Date: Mon, 13 Mar 2023 22:35:51 +0900 Subject: mscp_prepare() scans source paths in a thread. This commit runs mscp_prepare() in a pthread. mscp copy threads run aysnchronously with mscp_prepare(). So, when mscp_prepare() has not finished yet (due to too many source files), we can start to copy files. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 7470928..caaa333 100644 --- a/src/main.c +++ b/src/main.c @@ -358,7 +358,7 @@ int main(int argc, char **argv) } if (dryrun) { - ret = 0; + ret = mscp_prepare_join(m); goto out; } -- cgit v1.2.3