diff options
Diffstat (limited to 'src/nat/nat.c')
-rw-r--r-- | src/nat/nat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nat/nat.c b/src/nat/nat.c index 03a77ddc3..6e55e3bc7 100644 --- a/src/nat/nat.c +++ b/src/nat/nat.c | |||
@@ -789,7 +789,7 @@ nat_server_read (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
789 | { | 789 | { |
790 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 790 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
791 | "Finished reading from server stdout with code: %d\n", bytes); | 791 | "Finished reading from server stdout with code: %d\n", bytes); |
792 | if (0 != GNUNET_OS_process_kill (h->server_proc, SIGTERM)) | 792 | if (0 != GNUNET_OS_process_kill (h->server_proc, GNUNET_TERM_SIG)) |
793 | GNUNET_log_from_strerror (GNUNET_ERROR_TYPE_WARNING, "nat", "kill"); | 793 | GNUNET_log_from_strerror (GNUNET_ERROR_TYPE_WARNING, "nat", "kill"); |
794 | GNUNET_OS_process_wait (h->server_proc); | 794 | GNUNET_OS_process_wait (h->server_proc); |
795 | GNUNET_OS_process_destroy (h->server_proc); | 795 | GNUNET_OS_process_destroy (h->server_proc); |
@@ -1303,7 +1303,7 @@ GNUNET_NAT_unregister (struct GNUNET_NAT_Handle *h) | |||
1303 | } | 1303 | } |
1304 | if (NULL != h->server_proc) | 1304 | if (NULL != h->server_proc) |
1305 | { | 1305 | { |
1306 | if (0 != GNUNET_OS_process_kill (h->server_proc, SIGTERM)) | 1306 | if (0 != GNUNET_OS_process_kill (h->server_proc, GNUNET_TERM_SIG)) |
1307 | GNUNET_log_from_strerror (GNUNET_ERROR_TYPE_WARNING, "nat", "kill"); | 1307 | GNUNET_log_from_strerror (GNUNET_ERROR_TYPE_WARNING, "nat", "kill"); |
1308 | GNUNET_OS_process_wait (h->server_proc); | 1308 | GNUNET_OS_process_wait (h->server_proc); |
1309 | GNUNET_OS_process_destroy (h->server_proc); | 1309 | GNUNET_OS_process_destroy (h->server_proc); |