[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r21987 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r21987 - gnunet/src/util |
Date: |
Thu, 14 Jun 2012 10:51:48 +0200 |
Author: wachs
Date: 2012-06-14 10:51:48 +0200 (Thu, 14 Jun 2012)
New Revision: 21987
Modified:
gnunet/src/util/test_common_logging_runtime_loglevels.c
Log:
fix for segfault
Modified: gnunet/src/util/test_common_logging_runtime_loglevels.c
===================================================================
--- gnunet/src/util/test_common_logging_runtime_loglevels.c 2012-06-14
08:12:16 UTC (rev 21986)
+++ gnunet/src/util/test_common_logging_runtime_loglevels.c 2012-06-14
08:51:48 UTC (rev 21987)
@@ -50,13 +50,16 @@
{
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Ending phase %d, ok is %d\n", phase,
ok);
- if (0 != GNUNET_OS_process_kill (proc, SIGTERM))
+ if (NULL != proc)
{
- GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
+ if (0 != GNUNET_OS_process_kill (proc, SIGTERM))
+ {
+ GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
+ }
+ GNUNET_OS_process_wait (proc);
+ GNUNET_OS_process_destroy (proc);
+ proc = NULL;
}
- GNUNET_OS_process_wait (proc);
- GNUNET_OS_process_destroy (proc);
- proc = NULL;
GNUNET_DISK_pipe_close (pipe_stdout);
if (ok == 1)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r21987 - gnunet/src/util,
gnunet <=