projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ustd: add system to elegantly end daemon on SIGTERM, after waiting that all traces...
[lttng-ust.git]
/
libust
/
tracectl.c
diff --git
a/libust/tracectl.c
b/libust/tracectl.c
index 61a5392174fac31377117ae42ab77f188c22c651..412cca2b1cfdb1b4969cbaeb030f170ae871b988 100644
(file)
--- a/
libust/tracectl.c
+++ b/
libust/tracectl.c
@@
-1085,15
+1085,15
@@
int restarting_usleep(useconds_t usecs)
static void __attribute__((destructor)) keepalive()
{
if(trace_recording() && buffers_to_export) {
static void __attribute__((destructor)) keepalive()
{
if(trace_recording() && buffers_to_export) {
+ int total = 0;
DBG("Keeping process alive for consumer daemon...");
while(buffers_to_export) {
const int interv = 200000;
DBG("Keeping process alive for consumer daemon...");
while(buffers_to_export) {
const int interv = 200000;
- int total = 0;
- restarting_usleep(20000);
+ restarting_usleep(interv);
total += interv;
if(total >= 3000000) {
total += interv;
if(total >= 3000000) {
- WARN("non-consumed buffers remaining after limit; not waiting anymore");
+ WARN("non-consumed buffers remaining after
wait
limit; not waiting anymore");
break;
}
}
break;
}
}
This page took
0.026082 seconds
and
4
git commands to generate.