Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
83
Issues
83
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
926d79b6
Commit
926d79b6
authored
Jan 27, 2021
by
Adam Wujek
Committed by
Adam Wujek
Feb 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace/wrsw_hald: close shmem after the check if hal is alive
Signed-off-by:
Adam Wujek
<
dev_public@wujek.eu
>
parent
fc05e225
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
hal_exports.c
userspace/wrsw_hal/hal_exports.c
+3
-2
No files found.
userspace/wrsw_hal/hal_exports.c
View file @
926d79b6
...
...
@@ -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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment