aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/perf_datastore_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-06-28 17:08:07 +0000
committerChristian Grothoff <christian@grothoff.org>2009-06-28 17:08:07 +0000
commit3e719ecc0f2252bfb01ce6ee057e6d63dd4b7037 (patch)
tree613635d211366eda3ac83eccee08f49e78e125e5 /src/datastore/perf_datastore_api.c
parenta913b5f73410eb3f0568670046d3ecf3b233744f (diff)
downloadgnunet-3e719ecc0f2252bfb01ce6ee057e6d63dd4b7037.tar.gz
gnunet-3e719ecc0f2252bfb01ce6ee057e6d63dd4b7037.zip
airplane hackery
Diffstat (limited to 'src/datastore/perf_datastore_api.c')
-rw-r--r--src/datastore/perf_datastore_api.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/datastore/perf_datastore_api.c b/src/datastore/perf_datastore_api.c
index 95ee18dad..f10f6d0f5 100644
--- a/src/datastore/perf_datastore_api.c
+++ b/src/datastore/perf_datastore_api.c
@@ -104,6 +104,9 @@ static unsigned long long stored_ops;
104 104
105static struct GNUNET_TIME_Absolute start_time; 105static struct GNUNET_TIME_Absolute start_time;
106 106
107static int ok;
108
109
107static int 110static int
108putValue (int i, int k) 111putValue (int i, int k)
109{ 112{
@@ -206,7 +209,6 @@ run (void *cls,
206static int 209static int
207check () 210check ()
208{ 211{
209 int ok = 1 + 2 + 4 + 8;
210 pid_t pid; 212 pid_t pid;
211 char *const argv[] = { "perf-datastore-api", 213 char *const argv[] = { "perf-datastore-api",
212 "-c", 214 "-c",
@@ -228,7 +230,7 @@ check ()
228 sleep (1); 230 sleep (1);
229 GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, 231 GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1,
230 argv, "perf-datastore-api", "nohelp", 232 argv, "perf-datastore-api", "nohelp",
231 options, &run, &ok); 233 options, &run, NULL);
232 if (0 != PLIBC_KILL (pid, SIGTERM)) 234 if (0 != PLIBC_KILL (pid, SIGTERM))
233 { 235 {
234 GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill"); 236 GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");