summaryrefslogtreecommitdiff
path: root/daemonize.go
diff options
context:
space:
mode:
Diffstat (limited to 'daemonize.go')
-rw-r--r--daemonize.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemonize.go b/daemonize.go
index 5215b2c..40d9b64 100644
--- a/daemonize.go
+++ b/daemonize.go
@@ -29,7 +29,7 @@ func exitOnUsr1() {
func forkChild() int {
name := os.Args[0]
// Use the full path to our executable if we can get if from /proc.
- buf := make([]byte, syscall.PathMax)
+ buf := make([]byte, syscallcompat.PATH_MAX)
n, err := syscall.Readlink("/proc/self/exe", buf)
if err == nil {
name = string(buf[:n])