projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54eb230
)
execute: fix return type from write()
author
Lennart Poettering
<lennart@poettering.net>
Fri, 11 Sep 2015 16:15:08 +0000
(18:15 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 11 Sep 2015 16:31:49 +0000
(18:31 +0200)
src/core/execute.c
patch
|
blob
|
history
diff --git
a/src/core/execute.c
b/src/core/execute.c
index
8773d9c
..
3c308e3
100644
(file)
--- a/
src/core/execute.c
+++ b/
src/core/execute.c
@@
-1169,9
+1169,11
@@
static void do_idle_pipe_dance(int idle_pipe[4]) {
r = fd_wait_for_event(idle_pipe[0], POLLHUP, IDLE_TIMEOUT_USEC);
if (idle_pipe[3] >= 0 && r == 0 /* timeout */) {
+ ssize_t n;
+
/* Signal systemd that we are bored and want to continue. */
-
r
= write(idle_pipe[3], "x", 1);
- if (
r
> 0)
+
n
= write(idle_pipe[3], "x", 1);
+ if (
n
> 0)
/* Wait for systemd to react to the signal above. */
fd_wait_for_event(idle_pipe[0], POLLHUP, IDLE_TIMEOUT2_USEC);
}