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
f2aabf29
Commit
f2aabf29
authored
Jan 23, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ecd0e7f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
wcfs/client/wcfs.cpp
wcfs/client/wcfs.cpp
+1
-1
wcfs/client/wcfs_watchlink.cpp
wcfs/client/wcfs_watchlink.cpp
+2
-1
No files found.
wcfs/client/wcfs.cpp
View file @
f2aabf29
...
...
@@ -360,7 +360,7 @@ error _FileH::close() {
// fileh could be opened for the same foid. Be careful not to erase it.
wconn
->
_filehmu
.
lock
();
// XXX decref open count
if
(
wconn
->
_filehtab
.
get
(
fileh
.
foid
)
==
&
fileh
)
if
(
wconn
->
_filehtab
.
get
(
fileh
.
foid
)
.
_ptr
()
==
&
fileh
)
// XXX _ptr() - or better teach `refptr<T> == T*` ?
wconn
->
_filehtab
.
erase
(
fileh
.
foid
);
wconn
->
_filehmu
.
unlock
();
...
...
wcfs/client/wcfs_watchlink.cpp
View file @
f2aabf29
...
...
@@ -21,6 +21,7 @@
#include "wcfs.h"
#include "wcfs_watchlink.h"
#include <golang/errors.h>
#include <golang/fmt.h>
#include <golang/strings.h>
#include <string.h>
...
...
@@ -101,7 +102,7 @@ error _WatchLink::close() {
// XXX -> we now have `kill -QUIT` to wcfs.go on test timeout - remove ^^^ comments?
error
err2
=
wlink
.
_serveWG
->
wait
();
// canceled is expected and ok
if
(
errors
.
Is
(
err2
,
context
::
canceled
))
if
(
errors
::
Is
(
err2
,
context
::
canceled
))
err2
=
nil
;
error
err3
=
wlink
.
_f
->
close
();
...
...
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