Set close-on-exec flag on USB Kit device descriptors, so apps launched by Tracker won't inherit all the fds to hubs as they do on Zeta :)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24891 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2008-04-10 16:46:26 +00:00
parent 0116de8b74
commit 42fe011d2a

View File

@ -49,7 +49,7 @@ BUSBDevice::SetTo(const char *path)
return B_BAD_VALUE;
fPath = strdup(path);
fRawFD = open(path, O_RDWR);
fRawFD = open(path, O_RDWR|O_CLOEXEC);
if (fRawFD < 0) {
Unset();
return B_ERROR;