aboutsummaryrefslogtreecommitdiff
path: root/internal/process
diff options
context:
space:
mode:
Diffstat (limited to 'internal/process')
-rw-r--r--internal/process/manager.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/process/manager.go b/internal/process/manager.go
index 274e63df..042486a5 100644
--- a/internal/process/manager.go
+++ b/internal/process/manager.go
@@ -15,9 +15,7 @@ import (
log "unknwon.dev/clog/v2"
)
-var (
- ErrExecTimeout = errors.New("process execution timeout")
-)
+var ErrExecTimeout = errors.New("process execution timeout")
const DEFAULT_TIMEOUT = 60 * time.Second
@@ -41,8 +39,10 @@ func (c *pidCounter) PID() int64 {
return c.pid
}
-var counter = new(pidCounter)
-var Processes []*Process
+var (
+ counter = new(pidCounter)
+ Processes []*Process
+)
// Add adds a process to global list and returns its PID.
func Add(desc string, cmd *exec.Cmd) int64 {