commit | 83658e0d36a80d227c527796f48bff9c4da78bfe | [log] [tgz] |
---|---|---|
author | Akilesh Kailash <akailash@google.com> | Tue Apr 27 02:30:39 2021 +0000 |
committer | Akilesh Kailash <akailash@google.com> | Tue Apr 27 02:36:18 2021 +0000 |
tree | 705681e811813432426b1c24721bcb484c955215 | |
parent | 4a3ab034c6bd435c1e2134d7164945d3f085f120 [diff] |
libsnapshot: Pass MSG_NOSIGNAL socket flags If one end of the communication socket is closed for some reason, there is no need to terminate the daemon or the client. Mask the SIGPIPE using MSG_NOSIGNAL flag - we will still get EPIPE error but process will not be terminated. Bug: 186213024 Test: Full OTA Signed-off-by: Akilesh Kailash <akailash@google.com> Change-Id: Iaa53545c0c4059618f6b49afb9ec24ea5372c7e0