git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7740876
)
tdb:torture: fix -O3 error unused result code of read
author
Michael Adam
<obnox@samba.org>
Wed, 23 Mar 2016 01:36:04 +0000
(
02:36
+0100)
committer
Michael Adam
<obnox@samba.org>
Thu, 12 May 2016 22:16:15 +0000
(
00:16
+0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Christian Ambach <ambi@samba.org>
lib/tdb/tools/tdbtorture.c
patch
|
blob
|
history
diff --git
a/lib/tdb/tools/tdbtorture.c
b/lib/tdb/tools/tdbtorture.c
index e4b8f6991a70adb1a4f683e059ac2021ffe4f571..331a459ddbb148a8c272c3b0d529d11b5390cbff 100644
(file)
--- a/
lib/tdb/tools/tdbtorture.c
+++ b/
lib/tdb/tools/tdbtorture.c
@@
-427,8
+427,12
@@
int main(int argc, char * const *argv)
|| WTERMSIG(status) == SIGUSR1) {
/* SIGUSR2 means they wrote to pipe. */
if (WTERMSIG(status) == SIGUSR2) {
- read(pfds[0], &done[j],
- sizeof(done[j]));
+ ssize_t ret;
+
+ do {
+ ret = read(pfds[0], &done[j],
+ sizeof(done[j]));
+ } while (ret == -1 && errno == EINTR);
}
pids[j] = fork();
if (pids[j] == 0)