Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LimaGroup
Lima-camera-slsdetector
Commits
ca97655f
Commit
ca97655f
authored
Jun 26, 2018
by
Alejandro Homs Puron
Committed by
operator for beamline
Jul 07, 2018
Browse files
CPUAffinity: do not stop if writing to netdev_set_queue_rps_cpus.c fails
parent
21cab455
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/SlsDetectorCPUAffinity.cpp
View file @
ca97655f
...
@@ -331,14 +331,18 @@ string CPUAffinity::getNetDevSetterSudoDesc()
...
@@ -331,14 +331,18 @@ string CPUAffinity::getNetDevSetterSudoDesc()
string
dir
=
"/tmp"
;
string
dir
=
"/tmp"
;
string
fname
=
dir
+
"/"
+
setter_name
+
".c"
;
string
fname
=
dir
+
"/"
+
setter_name
+
".c"
;
ofstream
src_file
(
fname
.
c_str
());
ofstream
src_file
(
fname
.
c_str
());
const
StringList
&
SrcList
=
NetDevSetQueueRpsSrc
;
if
(
src_file
)
{
StringList
::
const_iterator
it
,
end
=
SrcList
.
end
();
const
StringList
&
SrcList
=
NetDevSetQueueRpsSrc
;
for
(
it
=
SrcList
.
begin
();
src_file
&&
(
it
!=
end
);
++
it
)
StringList
::
const_iterator
it
,
end
=
SrcList
.
end
();
src_file
<<
*
it
<<
endl
;
for
(
it
=
SrcList
.
begin
();
src_file
&&
(
it
!=
end
);
++
it
)
if
(
src_file
)
src_file
<<
*
it
<<
endl
;
src_file
.
close
();
if
(
src_file
)
if
(
!
src_file
)
src_file
.
close
();
THROW_HW_ERROR
(
Error
)
<<
"Error writing to "
<<
fname
;
if
(
!
src_file
)
DEB_WARNING
()
<<
"Error writing to "
<<
fname
;
}
else
{
DEB_WARNING
()
<<
"Error creating "
<<
fname
;
}
ostringstream
desc
;
ostringstream
desc
;
string
aux_setter
=
dir
+
"/"
+
setter_name
;
string
aux_setter
=
dir
+
"/"
+
setter_name
;
...
...
Write
Preview
Supports
Markdown
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