Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Beam Positoning Monitor - Software
Commits
7106ae06
Commit
7106ae06
authored
May 28, 2015
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/dev_io/dev_io.c: fix only PCIe devices can kill DEVIO Config
This is a temporary fix to github issue #94
parent
7e2f1659
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
dev_io.c
src/dev_io/dev_io.c
+10
-6
No files found.
src/dev_io/dev_io.c
View file @
7106ae06
...
...
@@ -233,12 +233,16 @@ int main (int argc, char *argv[])
DBE_DEBUG
(
DBG_DEV_IO
|
DBG_LVL_INFO
,
"[dev_io] Slot number: 0x%08X
\n
"
,
dev_id
);
/* FIXME: give some time for the process to terminate gracefully */
sleep
(
4
);
/* Kill DEVIO cfg as we've already got our slot number */
kill
(
child_devio_cfg_pid
,
DEVIO_KILL_CFG_SIGNAL
);
/* Wait child */
hutils_wait_chld
();
if
(
llio_type
==
PCIE_DEV
)
{
/* FIXME: give some time for the process to terminate gracefully */
sleep
(
5
);
/* Kill DEVIO cfg as we've already got our slot number */
if
(
child_devio_cfg_pid
>
0
)
{
kill
(
child_devio_cfg_pid
,
DEVIO_KILL_CFG_SIGNAL
);
}
/* Wait child */
hutils_wait_chld
();
}
/* Destroy libclient */
bpm_client_destroy
(
&
client_cfg
);
#endif
...
...
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