OSDN Git Service

Explicitly close pipe end when we cease operations...
authorChristopher Tate <ctate@google.com>
Mon, 16 May 2016 18:52:41 +0000 (11:52 -0700)
committerChris Tate <ctate@android.com>
Wed, 18 May 2016 19:24:32 +0000 (19:24 +0000)
commit3bed1c0ef8a66c4ce064b1c6ee443681070c5fcb
tree3abcd30eabd49220adb70fcb326ecbf67d0c0ddb
parent19397a4492c250eff92a2a705a2799aff8dba173
Explicitly close pipe end when we cease operations...

...because the other in-VM reference to that FD means that it won't
get GC'd after we release our local reference to the containing object,
and we wind up with the feeder end blocking on write to a still-fully-
open pipe rather than being made aware that the read end has needed
to shut down.

Bug 28756668

Change-Id: I90b6aaeaabe7d912d96d7ef57c24f68d87d9d0ab
services/backup/java/com/android/server/backup/BackupManagerService.java