diff options
author | Kevin Krakauer <krakauer@google.com> | 2018-08-14 15:48:52 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-08-14 15:49:58 -0700 |
commit | 12a4912aedc834fc8f404dc1ffeaa37088dd2d6b (patch) | |
tree | ec25ead4cbfe3476e53e793ff01021b6074361c8 /pkg/sentry/fs/proc/uptime.go | |
parent | e97717e29a1bb3e373b130086c4182c598a8121c (diff) |
Fix `ls -laR | wc -l` hanging.
stat()-ing /proc/PID/fd/FD incremented but didn't decrement the refcount for
FD. This behavior wasn't usually noticeable, but in the above case:
- ls would never decrement the refcount of the write end of the pipe to 0.
- This caused the write end of the pipe never to close.
- wc would then hang read()-ing from the pipe.
PiperOrigin-RevId: 208728817
Change-Id: I4fca1ba5ca24e4108915a1d30b41dc63da40604d
Diffstat (limited to 'pkg/sentry/fs/proc/uptime.go')
0 files changed, 0 insertions, 0 deletions