Apply MSG_NOSIGNAL to the api using 'send' system call. 21/110821/3
authorjongmyeongko <jongmyeong.ko@samsung.com>
Wed, 18 Jan 2017 06:27:17 +0000 (15:27 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Wed, 18 Jan 2017 08:25:54 +0000 (00:25 -0800)
commit95c4212fc0ff1a08ba74a27a32fbb61a046e4e67
treef684ef0493a69d692b78a1439dd8c0220ccb16ba
parentcab5fc1634da7ccc49762fc243b98993bf87ca85
Apply MSG_NOSIGNAL to the api using 'send' system call.

From a certain cause, if the pipe is broken, then the process will be aborted unexpectedly
and the remaining behavior of that process will be skipped.
The SIGPIPE signal cause this abort.
So, to prevent the unexpect abort, the MSG_NOSIGNAL flag can be the solution.
Becuase, this flag turns off the signaling caused by current system call.
Even though the signaling is off, the process could know the pipe error from errno(EPIPE).

Change-Id: Ifd35062947a24982b160f0774546a855332c7b94
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
installer/pkgmgr_installer.c