projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't close file descriptors twice
[ust.git]
/
libust
/
tracectl.c
diff --git
a/libust/tracectl.c
b/libust/tracectl.c
index 874a1b4d7e7bede3a6f1910094edebfdf3f91127..e0b9370963a482a206be9b358d4705ecae727e9c 100644
(file)
--- a/
libust/tracectl.c
+++ b/
libust/tracectl.c
@@
-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.024254 seconds
and
4
git commands to generate.