Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
30553e72
Commit
30553e72
authored
Dec 22, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9edcc300
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
wcfs/internal/wcfs_watchlink.cpp
wcfs/internal/wcfs_watchlink.cpp
+4
-3
No files found.
wcfs/internal/wcfs_watchlink.cpp
View file @
30553e72
...
@@ -253,7 +253,7 @@ pair<string, error> _WatchLink::sendReq(context::Context ctx, const string &req)
...
@@ -253,7 +253,7 @@ pair<string, error> _WatchLink::sendReq(context::Context ctx, const string &req)
//printf("wlink sendReq '%s'\n", req.c_str());
//printf("wlink sendReq '%s'\n", req.c_str());
rxPkt
rx
;
rxPkt
rx
;
bool
ok
;
chan
<
rxPkt
>
rxq
;
chan
<
rxPkt
>
rxq
;
error
err
;
error
err
;
tie
(
rxq
,
err
)
=
wlink
->
_sendReq
(
ctx
,
req
);
tie
(
rxq
,
err
)
=
wlink
->
_sendReq
(
ctx
,
req
);
...
@@ -263,13 +263,14 @@ pair<string, error> _WatchLink::sendReq(context::Context ctx, const string &req)
...
@@ -263,13 +263,14 @@ pair<string, error> _WatchLink::sendReq(context::Context ctx, const string &req)
//printf("sendReq: wait ...\n");
//printf("sendReq: wait ...\n");
int
_
=
select
({
int
_
=
select
({
ctx
->
done
().
recvs
(),
// 0
ctx
->
done
().
recvs
(),
// 0
rxq
.
recvs
(
&
rx
),
// 1
rxq
.
recvs
(
&
rx
,
&
ok
),
// 1
});
});
//printf("sendReq: woken up #%d\n", _);
//printf("sendReq: woken up #%d\n", _);
if
(
_
==
0
)
if
(
_
==
0
)
return
make_pair
(
""
,
ctx
->
err
());
return
make_pair
(
""
,
ctx
->
err
());
// XXX check for EOF
if
(
!
ok
)
return
make_pair
(
""
,
io
::
ErrUnexpectedEOF
);
// XXX error ok?
string
reply
=
rx
.
to_string
();
string
reply
=
rx
.
to_string
();
//printf("sendReq: reply='%s'\n", reply.c_str());
//printf("sendReq: reply='%s'\n", reply.c_str());
return
make_pair
(
reply
,
nil
);
return
make_pair
(
reply
,
nil
);
...
...
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