git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
c24b7f6
)
run-command: add braces for "if" block in wait_or_whine()
author
Ævar Arnfjörð Bjarmason
<redacted>
Tue, 2 Feb 2021 01:59:59 +0000
(
02:59
+0100)
committer
Junio C Hamano
<redacted>
Tue, 2 Feb 2021 05:15:58 +0000
(21:15 -0800)
Add braces to an "if" block in the wait_or_whine() function. This
isn't needed now, but will make a subsequent commit easier to read.
Signed-off-by: Ævar Arnfjörð Bjarmason <redacted>
Signed-off-by: Junio C Hamano <redacted>
run-command.c
patch
|
blob
|
history
diff --git
a/run-command.c
b/run-command.c
index ea4d0fb4b154c89a0fcd12d29e41ffcbb2af0302..00e68f37aba1ac1d297a55dbe91190a462829f40 100644
(file)
--- a/
run-command.c
+++ b/
run-command.c
@@
-551,8
+551,9
@@
static int wait_or_whine(pid_t pid, const char *argv0, int in_signal)
while ((waiting = waitpid(pid, &status, 0)) < 0 && errno == EINTR)
; /* nothing */
- if (in_signal)
+ if (in_signal)
{
return 0;
+ }
if (waiting < 0) {
failed_errno = errno;
git clone https://git.99rst.org/PROJECT