Set close on exec flag 60/298660/1
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 12 Sep 2023 06:58:44 +0000 (15:58 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 12 Sep 2023 06:58:44 +0000 (15:58 +0900)
commit94e5e3188316cd044a5e73b6a9a012382d54c9c8
tree661a6a4234c456936d0d8127752f72f534645636
parent4e5a93432468aac24ef51a3a4fdbff9fb4951f75
Set close on exec flag

To close the file descriptor when calling the execv(), this patch sets
the O_CLOEXEC flag to the file descriptor.

Change-Id: Ibd4bcdacdd40f0e5f207518428c91fa6796465c9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/port-internal.cc
src/port-internal.h