Code Review
/
apps
/
agl-service-can-low-level.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Rework J1939 and ISO TP feature enabling
[apps/agl-service-can-low-level.git]
/
low-can-binding
/
utils
/
socketcan.cpp
diff --git
a/low-can-binding/utils/socketcan.cpp
b/low-can-binding/utils/socketcan.cpp
index
50dfafb
..
e8e0198
100644
(file)
--- a/
low-can-binding/utils/socketcan.cpp
+++ b/
low-can-binding/utils/socketcan.cpp
@@
-73,6
+73,9
@@
namespace utils
{
close();
socket_ = ::socket(domain, type, protocol);
{
close();
socket_ = ::socket(domain, type, protocol);
+ if (socket_ < 0)
+ AFB_ERROR("Open failed. %s", strerror(errno));
+
return socket_;
}
return socket_;
}