Reviewed and added OSX patch

The patch was provided by:
Naveen Nathan <naveen@lastninja.net>

The following modifications to the patch was made:

- Added copyright notice
- Fixed file descriptor leak in .MTU() method
- Migrated to the new(er) golang.org/x/sys/unix package
- Removed non-functioning Daemonize method
This commit is contained in:
Mathias Hall-Andersen
2017-07-19 13:12:25 +02:00
parent c5d7efc246
commit 086d32186a
3 changed files with 370 additions and 0 deletions

9
src/daemon_darwin.go Normal file
View File

@@ -0,0 +1,9 @@
package main
import (
"errors"
)
func Daemonize() error {
return errors.New("Not implemented on OSX")
}