From bd1b04fe67fac5590190b0d1680e892787610185 Mon Sep 17 00:00:00 2001 From: Shirou WAKAYAMA Date: Wed, 20 Apr 2016 12:59:18 +0900 Subject: [PATCH] [process]linux: add document to Status. --- process/process_linux.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/process/process_linux.go b/process/process_linux.go index 75672a0..3899c92 100644 --- a/process/process_linux.go +++ b/process/process_linux.go @@ -126,6 +126,12 @@ func (p *Process) Parent() (*Process, error) { } return NewProcess(p.parent) } + +// Status returnes the process status. +// Return value could be one of these. +// R: Running S: Sleep T: Stop I: Idle +// Z: Zombie W: Wait L: Lock +// The charactor is same within all supported platforms. func (p *Process) Status() (string, error) { err := p.fillFromStatus() if err != nil {