Handle EBADF when KFD file handle is still open.

Signed-off-by: Sean Keely <Sean.Keely@amd.com>
Change-Id: I23d6c87d5729f57c261030c6baeff4c977eef934


[ROCm/ROCR-Runtime commit: 9efefe6d52]
This commit is contained in:
Sean Keely
2020-03-11 18:25:55 -05:00
parent b54a23f31a
commit 5149a527d7
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ int zfb_support;
* because the process can fork without calling the fork function in
* libc (using clone or calling the system call directly).
*/
static bool is_forked_child(void)
bool is_forked_child(void)
{
pid_t cur_pid;