commit 4352b37e413fbacce5f2d0fe968a3808509a2de9
parent 9c02a3d38090f4b01a5f7e7af13dbf24240632b2
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 17 Mar 2026 00:01:38 +0100
remove more legacy GNUNET_OS_process-API calls
Diffstat:
2 files changed, 20 insertions(+), 10 deletions(-)
diff --git a/src/testing/test_anastasis.c b/src/testing/test_anastasis.c
@@ -89,7 +89,7 @@ static char *file_secret;
/**
* Anastasis process.
*/
-static struct GNUNET_OS_Process *anastasisd;
+static struct GNUNET_Process *anastasisd;
/**
* Identity to use for testing.
@@ -402,10 +402,15 @@ main (int argc,
&cred,
&run,
NULL);
- GNUNET_OS_process_kill (anastasisd,
- SIGTERM);
- GNUNET_OS_process_wait (anastasisd);
- GNUNET_OS_process_destroy (anastasisd);
+ GNUNET_break (GNUNET_OK ==
+ GNUNET_process_kill (anastasisd,
+ SIGTERM));
+ GNUNET_break (GNUNET_OK ==
+ GNUNET_process_wait (anastasisd,
+ true,
+ NULL,
+ NULL))
+ GNUNET_process_destroy (anastasisd);
GNUNET_free (anastasis_url);
return ret;
}
diff --git a/src/testing/test_anastasis_api.c b/src/testing/test_anastasis_api.c
@@ -84,7 +84,7 @@ static char *anastasis_url;
/**
* Anastasis process.
*/
-static struct GNUNET_OS_Process *anastasisd;
+static struct GNUNET_Process *anastasisd;
/**
* Name of the file for exchanging the secret.
@@ -355,10 +355,15 @@ main (int argc,
&cred,
&run,
NULL);
- GNUNET_OS_process_kill (anastasisd,
- SIGTERM);
- GNUNET_OS_process_wait (anastasisd);
- GNUNET_OS_process_destroy (anastasisd);
+ GNUNET_break (GNUNET_OK ==
+ GNUNET_process_kill (anastasisd,
+ SIGTERM));
+ GNUNET_break (GNUNET_OK ==
+ GNUNET_process_wait (anastasisd,
+ true,
+ NULL,
+ NULL));
+ GNUNET_process_destroy (anastasisd);
GNUNET_free (anastasis_url);
return ret;
}