diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-07-17 01:20:01 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-07-17 01:20:01 +0000 |
commit | 7126e351b80d9826a7b0eb29ad85d8036d311d54 (patch) | |
tree | d2b602bcfbba6227bbf4d89aa42546adc2da9b2f /pkg/sentry/fs | |
parent | e416575c6a1729ebf2bf51a551c71a8e60869b60 (diff) | |
parent | 78a2704bde50515accacabe8b5734923d0085ef9 (diff) |
Merge 78a2704b (automated)
Diffstat (limited to 'pkg/sentry/fs')
-rw-r--r-- | pkg/sentry/fs/proc/task.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/sentry/fs/proc/task.go b/pkg/sentry/fs/proc/task.go index d82d4e998..87184ec67 100644 --- a/pkg/sentry/fs/proc/task.go +++ b/pkg/sentry/fs/proc/task.go @@ -188,6 +188,7 @@ func (f *subtasksFile) Readdir(ctx context.Context, file *fs.File, ser fs.Dentry taskInts = append(taskInts, int(tid)) } + sort.Sort(sort.IntSlice(taskInts)) // Find the task to start at. idx := sort.SearchInts(taskInts, int(offset)) if idx == len(taskInts) { |