projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: UST app clean list node usage
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
utils.c
diff --git
a/src/bin/lttng-sessiond/utils.c
b/src/bin/lttng-sessiond/utils.c
index ce2e97561f0170c3dbdb072370e79b1e5ec502ae..5ea337450ecf63e8fc1f19b6e7e336804e869f68 100644
(file)
--- a/
src/bin/lttng-sessiond/utils.c
+++ b/
src/bin/lttng-sessiond/utils.c
@@
-17,11
+17,7
@@
*/
#define _GNU_SOURCE
*/
#define _GNU_SOURCE
-#include <errno.h>
-#include <limits.h>
-#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
-#include <string.h>
#include <unistd.h>
#include <common/error.h>
#include <unistd.h>
#include <common/error.h>
@@
-35,7
+31,14
@@
int notify_thread_pipe(int wpipe)
{
int ret;
{
int ret;
- ret = write(wpipe, "!", 1);
+ /* Ignore if the pipe is invalid. */
+ if (wpipe < 0) {
+ return 0;
+ }
+
+ do {
+ ret = write(wpipe, "!", 1);
+ } while (ret < 0 && errno == EINTR);
if (ret < 0) {
PERROR("write poll pipe");
}
if (ret < 0) {
PERROR("write poll pipe");
}
This page took
0.024357 seconds
and
4
git commands to generate.