proc: Add process state T
On linux kernel 2.6.x, the Trace/Stop status is 'T' Fixes #209
This commit is contained in:
parent
7d3d90a04d
commit
59ef8a7a71
@ -27,6 +27,9 @@ const (
|
||||
StatusRunning = 'R'
|
||||
StatusTraceStop = 't'
|
||||
StatusZombie = 'Z'
|
||||
|
||||
// Kernel 2.6 has TraceStop as T
|
||||
StatusTraceStopT = 'T'
|
||||
)
|
||||
|
||||
// OSProcessDetails contains Linux specific
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user