Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cobra incorpration #66

Open
papidb opened this issue May 6, 2020 · 2 comments
Open

Cobra incorpration #66

papidb opened this issue May 6, 2020 · 2 comments

Comments

@papidb
Copy link

papidb commented May 6, 2020

Hey thanks for building this awesome project, but I've been having issues using this tool and cobra. If you have an example I can look into I would appreciate it. Thanks.

@deniszh
Copy link
Collaborator

deniszh commented May 24, 2021

Hi @papidb ,

Could you please demonstrate the issue?

Thanks!

@harryzcy
Copy link

harryzcy commented Sep 3, 2021

WasReborn() can be used to check if it's the child process. Something like this could be used:

if daemon.WasReborn() {
	// call Reborn(), defer Release(), etc... again
} else {
	// run cobra logic as normal
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants