projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Move code out of main.c and fix some issues
[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 d503665a4fdb1149d68b00b79fcab14ed948bd4d..5ea337450ecf63e8fc1f19b6e7e336804e869f68 100644
(file)
--- a/
src/bin/lttng-sessiond/utils.c
+++ b/
src/bin/lttng-sessiond/utils.c
@@
-31,6
+31,11
@@
int notify_thread_pipe(int wpipe)
{
int ret;
+ /* Ignore if the pipe is invalid. */
+ if (wpipe < 0) {
+ return 0;
+ }
+
do {
ret = write(wpipe, "!", 1);
} while (ret < 0 && errno == EINTR);
This page took
0.027911 seconds
and
4
git commands to generate.