Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
65255164
Commit
65255164
authored
Jul 11, 2018
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup code
parent
e5d82bcb
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
13 additions
and
9 deletions
+13
-9
mbslave.cc
extensions/ModbusSlave/mbslave.cc
+0
-2
unetexchange.cc
extensions/UNetUDP/unetexchange.cc
+0
-2
UniExchange.cc
extensions/UniNetwork/UniExchange.cc
+3
-0
start_fg.sh
extensions/UniNetwork/start_fg.sh
+1
-3
stop.sh
extensions/UniNetwork/stop.sh
+2
-0
test.xml
extensions/UniNetwork/test.xml
+2
-0
uninet.cc
extensions/UniNetwork/uninet.cc
+1
-2
uniset2-functions.sh
extensions/UniNetwork/uniset2-functions.sh
+2
-0
uniset2-start.sh
extensions/UniNetwork/uniset2-start.sh
+2
-0
No files found.
extensions/ModbusSlave/mbslave.cc
View file @
65255164
...
@@ -77,7 +77,6 @@ int main(int argc, const char** argv)
...
@@ -77,7 +77,6 @@ int main(int argc, const char** argv)
dlogany
<<
"(main): -------------- MBSlave START -------------------------
\n\n
"
;
dlogany
<<
"(main): -------------- MBSlave START -------------------------
\n\n
"
;
act
->
run
(
false
);
act
->
run
(
false
);
// on_sigchild(SIGTERM);
return
0
;
return
0
;
}
}
catch
(
const
std
::
exception
&
e
)
catch
(
const
std
::
exception
&
e
)
...
@@ -91,7 +90,6 @@ int main(int argc, const char** argv)
...
@@ -91,7 +90,6 @@ int main(int argc, const char** argv)
cerr
<<
(
p
?
p
.
__cxa_exception_type
()
->
name
()
:
"null"
)
<<
std
::
endl
;
cerr
<<
(
p
?
p
.
__cxa_exception_type
()
->
name
()
:
"null"
)
<<
std
::
endl
;
}
}
// on_sigchild(SIGTERM);
return
1
;
return
1
;
}
}
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
extensions/UNetUDP/unetexchange.cc
View file @
65255164
...
@@ -58,7 +58,6 @@ int main( int argc, const char** argv )
...
@@ -58,7 +58,6 @@ int main( int argc, const char** argv )
dlogany
<<
"(main): -------------- UDPReceiver START -------------------------
\n\n
"
;
dlogany
<<
"(main): -------------- UDPReceiver START -------------------------
\n\n
"
;
act
->
run
(
false
);
act
->
run
(
false
);
on_sigchild
(
SIGTERM
);
}
}
catch
(
const
uniset
::
Exception
&
ex
)
catch
(
const
uniset
::
Exception
&
ex
)
{
{
...
@@ -69,6 +68,5 @@ int main( int argc, const char** argv )
...
@@ -69,6 +68,5 @@ int main( int argc, const char** argv )
dcrit
<<
"(unetexchange): catch ..."
<<
std
::
endl
;
dcrit
<<
"(unetexchange): catch ..."
<<
std
::
endl
;
}
}
on_sigchild
(
SIGTERM
);
return
0
;
return
0
;
}
}
extensions/UniNetwork/UniExchange.cc
View file @
65255164
...
@@ -223,6 +223,9 @@ void UniExchange::execute()
...
@@ -223,6 +223,9 @@ void UniExchange::execute()
ptUpdate
.
reset
();
ptUpdate
.
reset
();
}
}
if
(
cancelled
)
break
;
msleep
(
polltime
);
msleep
(
polltime
);
}
}
}
}
...
...
extensions/UniNetwork/start_fg.sh
View file @
65255164
#!/bin/sh
#!/bin/sh
export
LD_LIBRARY_PATH
=
"../../lib/.libs;../lib/.libs"
ulimit
-Sc
10000000000
ulimit
-Sc
10000000000
./uniset2-start.sh
-f
./uniset2-network
--confile
test.xml
\
./uniset2-start.sh
-f
./uniset2-network
--confile
test.xml
\
--smemory-id
SharedMemory
\
--smemory-id
SharedMemory
\
--unet-id
UniExchange
--unet-id
UniExchange
$*
extensions/UniNetwork/stop.sh
0 → 120000
View file @
65255164
../../Utilities/scripts/uniset2-stop.sh
\ No newline at end of file
extensions/UniNetwork/test.xml
0 → 120000
View file @
65255164
../../conf/test.xml
\ No newline at end of file
extensions/UniNetwork/uninet.cc
View file @
65255164
...
@@ -68,7 +68,7 @@ int main(int argc, const char** argv)
...
@@ -68,7 +68,7 @@ int main(int argc, const char** argv)
act
->
broadcast
(
sm
.
transport_msg
()
);
act
->
broadcast
(
sm
.
transport_msg
()
);
act
->
run
(
true
);
act
->
run
(
true
);
uex
->
execute
();
uex
->
execute
();
on_sigchild
(
SIGTERM
);
act
->
join
(
);
return
0
;
return
0
;
}
}
catch
(
const
std
::
exception
&
ex
)
catch
(
const
std
::
exception
&
ex
)
...
@@ -80,6 +80,5 @@ int main(int argc, const char** argv)
...
@@ -80,6 +80,5 @@ int main(int argc, const char** argv)
dcrit
<<
"(uninetwork): catch(...)"
<<
endl
;
dcrit
<<
"(uninetwork): catch(...)"
<<
endl
;
}
}
on_sigchild
(
SIGTERM
);
return
1
;
return
1
;
}
}
extensions/UniNetwork/uniset2-functions.sh
0 → 120000
View file @
65255164
../../Utilities/scripts/uniset2-functions.sh
\ No newline at end of file
extensions/UniNetwork/uniset2-start.sh
0 → 120000
View file @
65255164
../../Utilities/scripts/uniset2-start.sh
\ No newline at end of file
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