fix: Fix sysman abort on destruction

Invoking close on invalid fd result in undesired behaviour.
Pass proper file descriptor for close to avoid unnecessary
aborts during destruction.

Related-To: GSD-6816

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
This commit is contained in:
Bellekallu Rajkiran
2023-10-31 18:49:01 +00:00
committed by Compute-Runtime-Automation
parent a1c7f419fb
commit aa85d71adc
9 changed files with 99 additions and 5 deletions

View File

@@ -47,6 +47,7 @@ extern DIR *(*sysCallsOpendir)(const char *name);
extern struct dirent *(*sysCallsReaddir)(DIR *dir);
extern int (*sysCallsClosedir)(DIR *dir);
extern int (*sysCallsGetDevicePath)(int deviceFd, char *buf, size_t &bufSize);
extern int (*sysCallsClose)(int fileDescriptor);
extern int flockRetVal;
extern int openFuncRetVal;