projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
have_listener: make static
[lttng-ust.git]
/
libust
/
tracectl.c
diff --git
a/libust/tracectl.c
b/libust/tracectl.c
index 874a1b4d7e7bede3a6f1910094edebfdf3f91127..82f51c1acf776fcee4ee29378dd2f151e784aa14 100644
(file)
--- a/
libust/tracectl.c
+++ b/
libust/tracectl.c
@@
-1107,10
+1107,10
@@
void *listener_main(void *p)
pthread_cleanup_pop(1);
}
pthread_cleanup_pop(1);
}
-volatile sig_atomic_t have_listener = 0;
/* These should only be accessed in the parent thread,
* not the listener.
*/
/* These should only be accessed in the parent thread,
* not the listener.
*/
+static volatile sig_atomic_t have_listener = 0;
static pthread_t listener_thread;
void create_listener(void)
static pthread_t listener_thread;
void create_listener(void)
@@
-1470,8
+1470,10
@@
static void ust_fork(void)
/* Delete all blocked consumers */
list_for_each_entry(bc, &blocked_consumers, list) {
/* Delete all blocked consumers */
list_for_each_entry(bc, &blocked_consumers, list) {
- close(bc->fd_producer);
- close(bc->fd_consumer);
+ result = close(bc->fd_producer);
+ if(result == -1) {
+ PERROR("close");
+ }
free(deletable_bc);
deletable_bc = bc;
list_del(&bc->list);
free(deletable_bc);
deletable_bc = bc;
list_del(&bc->list);
This page took
0.024659 seconds
and
4
git commands to generate.