diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-06-24 12:47:41 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-06-24 12:47:41 +0000 |
commit | 1e007a89197769e4e0f5ad36b583689a27f33cac (patch) | |
tree | 0fd01027c4f1feb0e6f9480d3a234fc9f3f35cea /src/testing | |
parent | 3d046f081a476705931e0e27fe678936b2ed2f05 (diff) | |
download | gnunet-1e007a89197769e4e0f5ad36b583689a27f33cac.tar.gz gnunet-1e007a89197769e4e0f5ad36b583689a27f33cac.zip |
- coverity fixes
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/gnunet-testing-run-service.c | 4 | ||||
-rw-r--r-- | src/testing/testing.c | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/testing/gnunet-testing-run-service.c b/src/testing/gnunet-testing-run-service.c index ed60a409b..b967d7385 100644 --- a/src/testing/gnunet-testing-run-service.c +++ b/src/testing/gnunet-testing-run-service.c | |||
@@ -116,8 +116,8 @@ stdin_cb (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
116 | GNUNET_SCHEDULER_shutdown (); | 116 | GNUNET_SCHEDULER_shutdown (); |
117 | return; | 117 | return; |
118 | case 'r': | 118 | case 'r': |
119 | GNUNET_TESTING_peer_stop (my_peer); | 119 | (void) GNUNET_TESTING_peer_stop (my_peer); |
120 | GNUNET_TESTING_peer_start (my_peer); | 120 | (void) GNUNET_TESTING_peer_start (my_peer); |
121 | printf ("restarted\n"); | 121 | printf ("restarted\n"); |
122 | fflush (stdout); | 122 | fflush (stdout); |
123 | break; | 123 | break; |
diff --git a/src/testing/testing.c b/src/testing/testing.c index d73d5ece3..898af1674 100644 --- a/src/testing/testing.c +++ b/src/testing/testing.c | |||
@@ -512,7 +512,9 @@ static void | |||
512 | stop_shared_service_instance (struct SharedServiceInstance *i) | 512 | stop_shared_service_instance (struct SharedServiceInstance *i) |
513 | { | 513 | { |
514 | GNUNET_break (0 == i->n_refs); | 514 | GNUNET_break (0 == i->n_refs); |
515 | GNUNET_OS_process_kill (i->proc, SIGTERM); | 515 | if (0 != GNUNET_OS_process_kill (i->proc, SIGTERM)) |
516 | LOG (GNUNET_ERROR_TYPE_WARNING, | ||
517 | "Killing shared service instance (%s) failed\n", i->ss->sname); | ||
516 | (void) GNUNET_OS_process_wait (i->proc); | 518 | (void) GNUNET_OS_process_wait (i->proc); |
517 | GNUNET_OS_process_destroy (i->proc); | 519 | GNUNET_OS_process_destroy (i->proc); |
518 | i->proc = NULL; | 520 | i->proc = NULL; |