diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-07 17:49:10 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-07 17:49:10 +0000 |
commit | 23f103db87f8567814a1ec9ebdbb090e881ea32d (patch) | |
tree | 7a3adf5c44cbb84148b4185101696ceb46909da2 /src/include/gnunet_common.h | |
parent | 0663a057d7611270d5f41ae8b345125d737387f2 (diff) | |
download | gnunet-23f103db87f8567814a1ec9ebdbb090e881ea32d.tar.gz gnunet-23f103db87f8567814a1ec9ebdbb090e881ea32d.zip |
LRN: Small janitor fixes
* Prevent janitor from failing if a process can't be killed (it might be dead
by the time janitor gets around to killing it).
* Fix janitor messages about killing arm/non-arm processes
Diffstat (limited to 'src/include/gnunet_common.h')
-rw-r--r-- | src/include/gnunet_common.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h index 6b3ffe2af..ec54aece4 100644 --- a/src/include/gnunet_common.h +++ b/src/include/gnunet_common.h | |||
@@ -569,7 +569,6 @@ void * | |||
569 | GNUNET_xmalloc_ (size_t size, const char *filename, int linenumber); | 569 | GNUNET_xmalloc_ (size_t size, const char *filename, int linenumber); |
570 | 570 | ||
571 | 571 | ||
572 | |||
573 | /** | 572 | /** |
574 | * Allocate and initialize memory. Checks the return value, aborts if no more | 573 | * Allocate and initialize memory. Checks the return value, aborts if no more |
575 | * memory is available. Don't use GNUNET_xmemdup_ directly. Use the | 574 | * memory is available. Don't use GNUNET_xmemdup_ directly. Use the |
@@ -664,6 +663,14 @@ GNUNET_xgrow_ (void **old, size_t elementSize, unsigned int *oldCount, | |||
664 | unsigned int newCount, const char *filename, int linenumber); | 663 | unsigned int newCount, const char *filename, int linenumber); |
665 | 664 | ||
666 | 665 | ||
666 | /** | ||
667 | * Create a copy of the given message. | ||
668 | * | ||
669 | * @param msg message to copy | ||
670 | * @return duplicate of the message | ||
671 | */ | ||
672 | struct GNUNET_MessageHeader * | ||
673 | GNUNET_copy_message (const struct GNUNET_MessageHeader *msg); | ||
667 | 674 | ||
668 | 675 | ||
669 | #if __STDC_VERSION__ < 199901L | 676 | #if __STDC_VERSION__ < 199901L |