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
3cd2dd08
Commit
3cd2dd08
authored
Mar 10, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
76f9145b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
wcfs/client/wcfs_watchlink.cpp
wcfs/client/wcfs_watchlink.cpp
+6
-8
No files found.
wcfs/client/wcfs_watchlink.cpp
View file @
3cd2dd08
...
...
@@ -132,7 +132,7 @@ error _WatchLink::_serveRX(context::Context ctx) {
wlink
.
_rxmu
.
lock
();
wlink
.
_rxdown
=
true
;
// don't allow new rxtab registers
wlink
.
_rxmu
.
unlock
();
for
(
auto
_
:
wlink
.
_rxtab
)
{
for
(
auto
_
:
wlink
.
_rxtab
)
{
// FIXME iterates without lock
auto
rxq
=
_
.
second
;
rxq
.
close
();
}
...
...
@@ -143,16 +143,14 @@ error _WatchLink::_serveRX(context::Context ctx) {
rxPkt
pkt
;
while
(
1
)
{
// NOTE: .close() makes sure .f.read*() will wake up
// NOTE: .close() makes sure .
_
f.read*() will wake up
tie
(
l
,
err
)
=
wlink
.
_readline
();
if
(
err
==
io
::
EOF_
)
{
// peer closed its tx
// XXX what happens on other errors?
wlink
.
rx_eof
.
close
();
}
if
(
err
!=
nil
)
{
//
XXX place=ok?
if
(
err
==
io
::
EOF_
)
//
peer closed its tx
if
(
err
==
io
::
EOF_
)
{
err
=
nil
;
wlink
.
rx_eof
.
close
();
}
return
E
(
err
);
}
trace
(
"C: watch : rx:
\"
%s
\"
"
,
v
(
l
));
...
...
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