From 086d32186ad4bddbed8bacc7f99705c8e62a1f9d Mon Sep 17 00:00:00 2001 From: Mathias Hall-Andersen Date: Wed, 19 Jul 2017 13:12:25 +0200 Subject: Reviewed and added OSX patch The patch was provided by: Naveen Nathan 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 --- src/daemon_darwin.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/daemon_darwin.go (limited to 'src/daemon_darwin.go') diff --git a/src/daemon_darwin.go b/src/daemon_darwin.go new file mode 100644 index 0000000..913af0e --- /dev/null +++ b/src/daemon_darwin.go @@ -0,0 +1,9 @@ +package main + +import ( + "errors" +) + +func Daemonize() error { + return errors.New("Not implemented on OSX") +} -- cgit v1.2.3