diff --git a/proc/proc_linux.go b/proc/proc_linux.go index fc5751e8..c3e780d5 100644 --- a/proc/proc_linux.go +++ b/proc/proc_linux.go @@ -27,6 +27,9 @@ const ( StatusRunning = 'R' StatusTraceStop = 't' StatusZombie = 'Z' + + // Kernel 2.6 has TraceStop as T + StatusTraceStopT = 'T' ) // OSProcessDetails contains Linux specific diff --git a/proc/threads_linux.go b/proc/threads_linux.go index de29963b..983503f5 100644 --- a/proc/threads_linux.go +++ b/proc/threads_linux.go @@ -30,7 +30,7 @@ func (t *Thread) halt() (err error) { func (t *Thread) stopped() bool { state := status(t.ID, t.dbp.os.comm) - return state == StatusTraceStop + return state == StatusTraceStop || state == StatusTraceStopT } func (t *Thread) resume() error {