Suppress SIGPIPE for prevent abort 19/109119/1
authorsangwan.kwon <sangwan.kwon@samsung.com>
Mon, 9 Jan 2017 02:25:52 +0000 (11:25 +0900)
committersangwan.kwon <sangwan.kwon@samsung.com>
Mon, 9 Jan 2017 02:25:52 +0000 (11:25 +0900)
commitfa83f9e9f64c155ae2fb7849f5a79862537dc8dc
tree24171b7055cab714af6cd98c9f941db29895f349
parent81084b347b469beb40098e7331bbd8dbc72fbf54
Suppress SIGPIPE for prevent abort

[PROBLEM]
* send() makes unexpectedly abort when SIG_PIPE occurred.

[SOLUTION]
* Suppress SIGPIPE by using MSG_NOSIGNAL params.
* And check pipe error(EPIPE) by errno.

Change-Id: I9acaba8418312dff3d1b7fbbeded4045c400b794
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
src/server/src/cert-server-main.c