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

Doesn't work on macOS #76

Open
bartekpacia opened this issue Jun 14, 2021 · 3 comments
Open

Doesn't work on macOS #76

bartekpacia opened this issue Jun 14, 2021 · 3 comments

Comments

@bartekpacia
Copy link

bartekpacia commented Jun 14, 2021

the sample doesn't work on my machine (macOS 11) – the process exits immediately – the pidfile exists for a few milliseconds and then is deleted.

some info that might help:

$ go version
go version go1.16.5 darwin/amd64
$ uname -a
Darwin Barteks-MacBook-Pro.local 20.5.0 Darwin Kernel Version 20.5.0: Sat May  8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64
@deniszh
Copy link
Collaborator

deniszh commented Jun 15, 2021 via email

@bartekpacia
Copy link
Author

Hi Denis,

by "doesn't work" I mean that the dameon exits immediately. In other words, in behaves like a normal program – it executes main and finishes execution.

@dertuxmalwieder
Copy link

dertuxmalwieder commented Jul 13, 2021

I worked on one of my applications on macOS 11 just this morning and it worked well. I had to kill the process, it did not exit immediately.

It's this file, mainly. My main() function is rather simple:

func main() {
 	startServer()
}

I suspect that there might be your problem?

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