You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ctx := &daemon.Context{}
d, err := ctx.Reborn()
if err != nil {
// When I use exec.Command to execute the sh script and the sh script starts this program, the error prompts EOF
return
}
if d != nil {
return
}
defer ctx.Release()
The text was updated successfully, but these errors were encountered:
I found the cause of the problem, all programs that use the daemon package use the same environment variable "MARK_NAME", which causes other programs to start mistakenly thinking that they are already started by the daemon
Yes, looks like that's by design. But I do not see that this variable is exported, so, it will work if you spawn daemons from separate shells as a workaround.
The text was updated successfully, but these errors were encountered: