Commit 926d79b6 authored by Adam Wujek's avatar Adam Wujek Committed by Adam Wujek

userspace/wrsw_hald: close shmem after the check if hal is alive

Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent fc05e225
......@@ -277,9 +277,10 @@ int hal_check_running()
/* check if pid is 0 (shm not filled) or process with provided
* pid does not exist (probably crashed) */
if ((hal_head->pid == 0) || (kill(hal_head->pid, 0) != 0))
if ((hal_head->pid == 0) || (kill(hal_head->pid, 0) != 0)) {
wrs_shm_put(hal_head);
return 0;
}
wrs_shm_put(hal_head);
return 1;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment