Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
fba2e169
Commit
fba2e169
authored
Dec 21, 2017
by
zhaozhao.zz
Committed by
antirez
Jan 18, 2018
Browse files
aof: format code and comment
parent
7777be7b
Changes
1
Show whitespace changes
Inline
Side-by-side
src/aof.c
View file @
fba2e169
...
...
@@ -1315,7 +1315,7 @@ int aofCreatePipes(void) {
if
(
pipe
(
fds
)
==
-
1
)
goto
error
;
/* parent -> children data. */
if
(
pipe
(
fds
+
2
)
==
-
1
)
goto
error
;
/* children -> parent ack. */
if
(
pipe
(
fds
+
4
)
==
-
1
)
goto
error
;
/*
child
ren ->
pa
ren
t
ack. */
if
(
pipe
(
fds
+
4
)
==
-
1
)
goto
error
;
/*
pa
ren
t
->
child
ren ack. */
/* Parent -> children data is non blocking. */
if
(
anetNonBlock
(
NULL
,
fds
[
0
])
!=
ANET_OK
)
goto
error
;
if
(
anetNonBlock
(
NULL
,
fds
[
1
])
!=
ANET_OK
)
goto
error
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment