diff options
author | Hwankyu Jhun <h.jhun@samsung.com> | 2017-01-20 07:51:15 +0900 |
---|---|---|
committer | Hwankyu Jhun <h.jhun@samsung.com> | 2017-01-20 14:24:25 +0900 |
commit | 77de82ce741c576522f0dae12c014433516b9eaa (patch) | |
tree | d5ca419e5876ea1dcd71d85cb351794f50658cdc | |
parent | 3e4762ba6782bcbfa64fa537f01613bc5519f47f (diff) | |
download | launchpad-77de82ce741c576522f0dae12c014433516b9eaa.tar.gz launchpad-77de82ce741c576522f0dae12c014433516b9eaa.tar.bz2 launchpad-77de82ce741c576522f0dae12c014433516b9eaa.zip |
Prevent SIGPIPEsubmit/tizen_3.0/20170125.045517accepted/tizen/3.0/wearable/20170125.084541accepted/tizen/3.0/tv/20170125.084526accepted/tizen/3.0/mobile/20170125.084459accepted/tizen/3.0/ivi/20170125.084559accepted/tizen/3.0/common/20170125.122026
- Use MSG_NOSIGNAL option
Change-Id: I62cbf54ca004b65e022f3365ee6930a92674b165
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r-- | src/launchpad_common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/launchpad_common.c b/src/launchpad_common.c index a440731..f1b4532 100644 --- a/src/launchpad_common.c +++ b/src/launchpad_common.c @@ -250,7 +250,7 @@ int _send_cmd_to_amd(int cmd) } pkt.cmd = cmd; - ret = send(fd, &pkt, sizeof(app_pkt_t), 0); + ret = send(fd, &pkt, sizeof(app_pkt_t), MSG_NOSIGNAL); if (ret <= 0) { _E("Failed to send cmd(%d), errno(%d)", cmd, errno); close(fd); @@ -392,7 +392,7 @@ int _send_pkt_raw(int client_fd, app_pkt_t *pkt) pkt_size = AUL_PKT_HEADER_SIZE + pkt->len; - send_ret = send(client_fd, pkt, pkt_size, 0); + send_ret = send(client_fd, pkt, pkt_size, MSG_NOSIGNAL); _D("send(%d) : %d / %d", client_fd, send_ret, pkt_size); if (send_ret == -1) { @@ -609,7 +609,7 @@ int _connect_to_launchpad(int type, int id) _D("re-connect to %s (%d)", addr.sun_path, retry); } - send_ret = send(fd, &client_pid, sizeof(client_pid), 0); + send_ret = send(fd, &client_pid, sizeof(client_pid), MSG_NOSIGNAL); _D("send(%d) : %d", client_pid, send_ret); if (send_ret == -1) { |