amdgpu: make sure to set CLOEXEC on duplicated FDs
authorChristian König <ckoenig.leichtzumerken@gmail.com>
Tue, 17 Jul 2018 09:04:31 +0000 (11:04 +0200)
committerMichel Dänzer <michel.daenzer@amd.com>
Tue, 17 Jul 2018 14:48:08 +0000 (16:48 +0200)
commit4fa33e45e6d919b144d307934f372c82bc498c3c
tree8f61724570160676cd0bc08adac1ae6532c899d4
parent7e4501027cbb6536fbd096d4ba39d39a57a61f2d
amdgpu: make sure to set CLOEXEC on duplicated FDs

Otherwise we leak file descriptors into child processes.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-and-Tested-by: Junwei Zhang <Jerry.Zhang@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
amdgpu/amdgpu_device.c