commit | c46b8ac3b572395119656da2276e6831713b2d70 | [log] [tgz] |
---|---|---|
author | Marco Nelissen <marcone@google.com> | Wed Jul 20 13:52:01 2016 -0700 |
committer | Marco Nelissen <marcone@google.com> | Wed Jul 20 15:18:22 2016 -0700 |
tree | a74c2005108b27af145a74168e2dd7c569729158 | |
parent | 38c75d9d30b0b40e3d926503d553c869ce7bec1c [diff] |
screenrecord: fix race condition When pressing ctrl-c immediately after starting screenrecord (after setting the signal handler, but before gStopRequested is set to false) the record loop would never exit. Also delete the target file before recreating it, to avoid multiple instances of screenrecord writing the same file. Bug: 30247947 Change-Id: I374c125dac69e75638955680a2a5da81e3b22ffe