diff options
author | lurchi <lurchi@strangeplace.net> | 2017-12-30 20:39:39 +0100 |
---|---|---|
committer | lurchi <lurchi@strangeplace.net> | 2017-12-30 20:43:11 +0100 |
commit | 8412625bb5191040389610364167c768bb55efb4 (patch) | |
tree | 212e8744bbafaabc96b272f809e6b9c47dea287a /src/util/service.c | |
parent | 1d6a686ccc73ce02fd6e22decb82425012a82a04 (diff) | |
download | gnunet-8412625bb5191040389610364167c768bb55efb4.tar.gz gnunet-8412625bb5191040389610364167c768bb55efb4.zip |
Revert "tried to print out stacktrace, not working. removed."
This reverts commit 1522bb78401dd739299cc507e7237df32f239a3f.
Diffstat (limited to 'src/util/service.c')
-rw-r--r-- | src/util/service.c | 48 |
1 files changed, 12 insertions, 36 deletions
diff --git a/src/util/service.c b/src/util/service.c index c204f1f87..b4eb33caa 100644 --- a/src/util/service.c +++ b/src/util/service.c | |||
@@ -36,30 +36,6 @@ | |||
36 | #include "gauger.h" | 36 | #include "gauger.h" |
37 | #endif | 37 | #endif |
38 | 38 | ||
39 | //#if HAVE_EXECINFO_H | ||
40 | //#include "execinfo.h" | ||
41 | |||
42 | ///** | ||
43 | // * Use lsof to generate file descriptor reports on select error? | ||
44 | // * (turn off for stable releases). | ||
45 | // */ | ||
46 | //#define USE_LSOF GNUNET_NO | ||
47 | |||
48 | ///** | ||
49 | // * Obtain trace information for all scheduler calls that schedule tasks. | ||
50 | // */ | ||
51 | //#define EXECINFO GNUNET_NO | ||
52 | |||
53 | ///** | ||
54 | // * Check each file descriptor before adding | ||
55 | // */ | ||
56 | //#define DEBUG_FDS GNUNET_NO | ||
57 | |||
58 | ///** | ||
59 | // * Depth of the traces collected via EXECINFO. | ||
60 | // */ | ||
61 | //#define MAX_TRACE_DEPTH 50 | ||
62 | //#endif | ||
63 | 39 | ||
64 | #define LOG(kind,...) GNUNET_log_from (kind, "util-service", __VA_ARGS__) | 40 | #define LOG(kind,...) GNUNET_log_from (kind, "util-service", __VA_ARGS__) |
65 | 41 | ||
@@ -2553,18 +2529,18 @@ GNUNET_SERVICE_client_drop (struct GNUNET_SERVICE_Client *c) | |||
2553 | c, | 2529 | c, |
2554 | c->mq); | 2530 | c->mq); |
2555 | 2531 | ||
2556 | //#if EXECINFO | 2532 | #if EXECINFO |
2557 | // void *backtrace_array[MAX_TRACE_DEPTH]; | 2533 | void *backtrace_array[MAX_TRACE_DEPTH]; |
2558 | // int num_backtrace_strings = backtrace (backtrace_array, MAX_TRACE_DEPTH); | 2534 | int num_backtrace_strings = backtrace (backtrace_array, MAX_TRACE_DEPTH); |
2559 | // char **backtrace_strings = | 2535 | char **backtrace_strings = |
2560 | // backtrace_symbols (backtrace_array, | 2536 | backtrace_symbols (backtrace_array, |
2561 | // t->num_backtrace_strings); | 2537 | t->num_backtrace_strings); |
2562 | // for (unsigned int i = 0; i < num_backtrace_strings; i++) | 2538 | for (unsigned int i = 0; i < num_backtrace_strings; i++) |
2563 | // LOG (GNUNET_ERROR_TYPE_DEBUG, | 2539 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
2564 | // "client drop trace %u: %s\n", | 2540 | "client drop trace %u: %s\n", |
2565 | // i, | 2541 | i, |
2566 | // backtrace_strings[i]); | 2542 | backtrace_strings[i]); |
2567 | //#endif | 2543 | #endif |
2568 | 2544 | ||
2569 | if (NULL != c->drop_task) | 2545 | if (NULL != c->drop_task) |
2570 | { | 2546 | { |