summaryrefslogtreecommitdiff
path: root/src/util/os_priority.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2012-12-13 15:23:16 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2012-12-13 15:23:16 +0000
commit7d1a7943c92a1bf8ad015ac4ca3452ffe87717c5 (patch)
treed50d6383cc74e7e04a35dfcd007301c7a949ba99 /src/util/os_priority.c
parentc51afc320b2242cfd91d59905b483492061f6a56 (diff)
downloadgnunet-7d1a7943c92a1bf8ad015ac4ca3452ffe87717c5.tar.gz
gnunet-7d1a7943c92a1bf8ad015ac4ca3452ffe87717c5.zip
- logging
Diffstat (limited to 'src/util/os_priority.c')
-rw-r--r--src/util/os_priority.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/os_priority.c b/src/util/os_priority.c
index 20d54341d..1509531fa 100644
--- a/src/util/os_priority.c
+++ b/src/util/os_priority.c
@@ -340,6 +340,7 @@ parent_control_handler (void *cls,
340 { 340 {
341 if (-1 == ret) 341 if (-1 == ret)
342 LOG_STRERROR (GNUNET_ERROR_TYPE_ERROR, "GNUNET_DISK_file_read"); 342 LOG_STRERROR (GNUNET_ERROR_TYPE_ERROR, "GNUNET_DISK_file_read");
343 LOG (GNUNET_ERROR_TYPE_WARNING, "Closing control pipe\n");
343 GNUNET_DISK_file_close (control_pipe); 344 GNUNET_DISK_file_close (control_pipe);
344 control_pipe = NULL; 345 control_pipe = NULL;
345 return; 346 return;
@@ -437,6 +438,7 @@ GNUNET_OS_process_kill (struct GNUNET_OS_Process *proc, int sig)
437#endif 438#endif
438 if (NULL != proc->control_pipe) 439 if (NULL != proc->control_pipe)
439 { 440 {
441 LOG (GNUNET_ERROR_TYPE_DEBUG, "Sending signal %d to pid: %u via pipe\n", sig, proc->pid);
440 ret = GNUNET_DISK_file_write (proc->control_pipe, &csig, sizeof (csig)); 442 ret = GNUNET_DISK_file_write (proc->control_pipe, &csig, sizeof (csig));
441 if (sizeof (csig) == ret) 443 if (sizeof (csig) == ret)
442 return 0; 444 return 0;
@@ -486,6 +488,7 @@ GNUNET_OS_process_kill (struct GNUNET_OS_Process *proc, int sig)
486 } 488 }
487 return 0; 489 return 0;
488#else 490#else
491 LOG (GNUNET_ERROR_TYPE_DEBUG, "Sending signal %d to pid: %u via system call\n", sig, proc->pid);
489 return PLIBC_KILL (proc->pid, sig); 492 return PLIBC_KILL (proc->pid, sig);
490#endif 493#endif
491 default: 494 default:
@@ -493,6 +496,7 @@ GNUNET_OS_process_kill (struct GNUNET_OS_Process *proc, int sig)
493 errno = EINVAL; 496 errno = EINVAL;
494 return -1; 497 return -1;
495#else 498#else
499 LOG (GNUNET_ERROR_TYPE_DEBUG, "Sending signal %d to pid: %u via system call\n", sig, proc->pid);
496 return PLIBC_KILL (proc->pid, sig); 500 return PLIBC_KILL (proc->pid, sig);
497#endif 501#endif
498 } 502 }