-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
fixes #10405 silence an error from this in UnixDomainCM
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,9 @@ end | |
|
||
function manage(manager::UnixDomainCM, id::Int, config::WorkerConfig, op) | ||
if op == :deregister | ||
rm(get(config.userdata)[:sockname]) | ||
try | ||
This comment has been minimized.
Sorry, something went wrong.
JeffBezanson
Author
Member
|
||
rm(get(config.userdata)[:sockname]) | ||
end | ||
end | ||
nothing | ||
end | ||
|
3 comments
on commit 6343d50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it just tries to cleanup a unix domain socket entry in the filesystem if present. I'll take a look if it is required at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i still get
$ julia -e '@async throw(Exception)'
$ echo $?
0
shouldn't it at least print the exception and backtrace? returning a 1 would be great too, but i think we disagree on that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My guess is that -e
exits immediately after evaluating the expression, without visiting the event loop, so the printing doesn't happen. With -E
you'll see the exception, or something like ./julia -e '@async error(); sleep(0)'
.
where would it be appropriate to document, perhaps via example, the `t = @async ...; wait(t); t.exception`` syntax you showed in #10405