Replies: 5 comments
-
this is likely due to the fork, can you provide platform and os details? Also the used version of the library |
Beta Was this translation helpful? Give feedback.
-
tokio 1.16.1, latest version of daemonize-me, macOS 12.3 |
Beta Was this translation helpful? Give feedback.
-
Some research tells me you can delay Tokio execution, by making a separate
main function for Tokio. So the way to make demonize-me play along with
Tokio would be make a separate Tokio main function and call it once in the
child process. Because the whole process of demonization is blocking.
…On Thu, 31 Mar 2022, 12:54 Peter Wagenet, ***@***.***> wrote:
tokio 1.6.1, latest version of daemonize-me, macOS 12.3
—
Reply to this email directly, view it on GitHub
<#15 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABD5R2QSMCLHECP4FR4HJSTVCXDEJANCNFSM5SDAJ5WQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Ok, that makes sense. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Do try that, and let me know I will add it to the readme if this works |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
This doesn't seem to work with tokio. When I try, I get this message:
Additional context
This specifically happens when I run
Daemon::start
from a main with#[tokio::main]
.Beta Was this translation helpful? Give feedback.
All reactions