Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LARN
PRRT
Commits
ed5f17c9
Commit
ed5f17c9
authored
Sep 04, 2018
by
Andreas Schmidt
Browse files
Send instead of write.
parent
863728b7
Pipeline
#2966
passed with stages
in 1 minute and 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
prrt/time-protocol.h
View file @
ed5f17c9
...
...
@@ -113,7 +113,7 @@ static inline ssize_t _send(socket_t conn, const char *buf, size_t size)
int
written
=
0
;
ssize_t
n
=
0
;
while
(
written
<
size
)
{
n
=
write
(
conn
,
buf
,
size
-
written
);
n
=
send
(
conn
,
buf
,
size
-
written
,
0
);
if
(
n
<
0
)
{
_time
();
printf
(
"WRITE FAILED: %ld, errno: %d
\n
"
,
n
,
errno
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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