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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
c11843b4
Commit
c11843b4
authored
Dec 03, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
96a1efae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
1 deletion
+28
-1
wcfs/internal/wcfs_virtmem.cpp
wcfs/internal/wcfs_virtmem.cpp
+28
-1
No files found.
wcfs/internal/wcfs_virtmem.cpp
View file @
c11843b4
...
@@ -199,6 +199,20 @@ error _Conn::_pinner(context::Context ctx) { // XXX error -> where?
...
@@ -199,6 +199,20 @@ error _Conn::_pinner(context::Context ctx) { // XXX error -> where?
_Conn
&
wconn
=
*
this
;
_Conn
&
wconn
=
*
this
;
// XXX panic/exc -> log.CRITICAL
// XXX panic/exc -> log.CRITICAL
#if 0
// if pinner fails, wcfs will kill us.
// log pinner exception so the error is not hidden.
// print to stderr as well as by default log does not print to there.
def _():
exc = sys.exc_info()[1]
if exc in (None, context.canceled): # canceled = .close asks pinner to stop
return
log.critical('pinner failed:', exc_info=1)
print('CRITICAL: pinner failed:', file=sys.stderr)
traceback.print_exc(file=sys.stderr)
print('\nCRITICAL: wcfs server will likely kill us soon.', file=sys.stderr)
defer(_)
#endif
PinReq
req
;
PinReq
req
;
error
err
;
error
err
;
...
@@ -219,9 +233,22 @@ error _Conn::_pinner(context::Context ctx) { // XXX error -> where?
...
@@ -219,9 +233,22 @@ error _Conn::_pinner(context::Context ctx) { // XXX error -> where?
void
_Conn
::
_pin1
(
PinReq
*
req
)
{
void
_Conn
::
_pin1
(
PinReq
*
req
)
{
_Conn
&
wconn
=
*
this
;
_Conn
&
wconn
=
*
this
;
// XXX defer: reply either ack or nak on error
// XXX return error?
// XXX return error?
// XXX defer: reply either ack or nak on error
#if 0
// reply either ack or nak on error
def _():
ack = "ack"
exc = sys.exc_info()[1]
if exc is not None:
ack = "nak: %s" % exc
#req.reply(ack)
ctx = context.background() # XXX ok?
wconn._wlink.replyReq(ctx, req, ack)
defer(_)
#endif
_File
*
f
;
_File
*
f
;
bool
ok
;
bool
ok
;
wconn
.
_filemu
.
lock
();
wconn
.
_filemu
.
lock
();
...
...
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