Set close on exec for client socket 52/298652/1
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 12 Sep 2023 05:58:06 +0000 (14:58 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 12 Sep 2023 05:58:06 +0000 (14:58 +0900)
commite963327cda6619810ccc5cb4710ec269a4e0b60a
tree5deba49d10be3a30744b1c8cbe9c12e6cb60fe11
parent73c216c56851a3b00274b279689f8e16d024e19f
Set close on exec for client socket

To close the client socket fd, this patch sets O_CLOEXEC flag using fcntl().

Change-Id: I90f60c23ffc8aa0e62c93e26b4494493fb08eedb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/client-socket-internal.cc
src/client-socket-internal.hh
src/server-socket-internal.cc