Terminate my application with exit code #1073
Unanswered
nemliyartym
asked this question in
Q&A
Replies: 2 comments
-
I believe this is a bug in Fx. Created #1074 from this Discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think the author of this PR intended such a use case
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all. I would like to know how can I terminate my application with the exit codes I need. I have a simple
smb
module with a run function that callsshutdowner.Shutdown(fx.ExitCode(20))
with the code I need.If in main I just call
app.Run()
then my app exits with code 0. Do I test it withecho$?
. I changedRun
to callStart+Done+Stop
to try and get the exit code fromDone
, but that didn't work for me. I also tried to changeDone
toWait
, but in this case, the application hangs on the channel of wait.Please, tell me what am I doing wrong?)
main.go
smb.go
Beta Was this translation helpful? Give feedback.
All reactions