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
708a2f99
Commit
708a2f99
authored
Dec 21, 2011
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(LogicProcessor): исправил баг с определением iotype датчика
parent
3e23eb68
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
+13
-10
libuniset.spec
conf/libuniset.spec
+4
-1
PassiveLProcessor.cc
extensions/LogicProcessor/PassiveLProcessor.cc
+8
-8
start_fg_plogic.sh
extensions/LogicProcessor/start_fg_plogic.sh
+1
-1
No files found.
conf/libuniset.spec
View file @
708a2f99
...
...
@@ -3,7 +3,7 @@
Name: libuniset
Version: 1.0
Release: alt
59
Release: alt
60
Summary: UniSet - library for building distributed industrial control systems
License: GPL
Group: Development/C++
...
...
@@ -213,6 +213,9 @@ rm -f %buildroot%_libdir/*.la
%changelog
* Wed Dec 21 2011 Pavel Vainerman <pv@altlinux.ru> 1.0-alt60
- fixed bug in LogicProcessor
* Mon Dec 19 2011 Pavel Vainerman <pv@altlinux.ru> 1.0-alt59
- add precision for output variables
...
...
extensions/LogicProcessor/PassiveLProcessor.cc
View file @
708a2f99
...
...
@@ -90,7 +90,7 @@ void PassiveLProcessor::sysCommand( UniSetTypes::SystemMessage *sm )
{
if
(
!
shm
->
waitSMready
(
10000
)
)
{
cerr
<<
"(ERR): SM not ready. Terminated... "
<<
endl
;
dlog
[
Debug
::
CRIT
]
<<
"(ERR): SM not ready. Terminated... "
<<
endl
;
raise
(
SIGTERM
);
return
;
}
...
...
@@ -163,17 +163,17 @@ void PassiveLProcessor::setOuts()
break
;
default
:
cerr
<<
"(LProcessor::setOuts): неподдерживаемый тип iotype="
<<
it
->
iotype
<<
endl
;
dlog
[
Debug
::
CRIT
]
<<
"(LProcessor::setOuts): неподдерживаемый тип iotype="
<<
it
->
iotype
<<
endl
;
break
;
}
}
catch
(
Exception
&
ex
)
{
cerr
<<
"(LProcessor::setOuts): "
<<
ex
<<
endl
;
dlog
[
Debug
::
CRIT
]
<<
"(LProcessor::setOuts): "
<<
ex
<<
endl
;
}
catch
(...)
{
cerr
<<
"(LProcessor::setOuts): catch...
\n
"
;
dlog
[
Debug
::
CRIT
]
<<
"(LProcessor::setOuts): catch...
\n
"
;
}
}
}
...
...
@@ -195,17 +195,17 @@ void PassiveLProcessor::sigterm( int signo )
break
;
default
:
cerr
<<
"(LProcessor::sigterm): неподдерживаемый тип iotype="
<<
it
->
iotype
<<
endl
;
dlog
[
Debug
::
CRIT
]
<<
"(LProcessor::sigterm): неподдерживаемый тип iotype="
<<
it
->
iotype
<<
endl
;
break
;
}
}
catch
(
Exception
&
ex
)
{
cerr
<<
"(LProcessor::sigterm): "
<<
ex
<<
endl
;
dlog
[
Debug
::
CRIT
]
<<
"(LProcessor::sigterm): "
<<
ex
<<
endl
;
}
catch
(...)
{
cerr
<<
"(LProcessor::sigterm): catch...
\n
"
;
dlog
[
Debug
::
CRIT
]
<<
"(LProcessor::sigterm): catch...
\n
"
;
}
}
}
...
...
@@ -243,7 +243,7 @@ void PassiveLProcessor::processingMessage( UniSetTypes::VoidMessage* msg )
}
catch
(
Exception
&
ex
)
{
cout
<<
myname
<<
"(processingMessage): "
<<
ex
<<
endl
;
dlog
[
Debug
::
CRIT
]
<<
myname
<<
"(processingMessage): "
<<
ex
<<
endl
;
}
}
// -----------------------------------------------------------------------------
extensions/LogicProcessor/start_fg_plogic.sh
View file @
708a2f99
#!/bin/sh
uniset-start.sh
-
f
./uniset-plogicproc
--schema
schema.xml
\
uniset-start.sh
-
g
./uniset-plogicproc
--schema
schema.xml
\
--smemory-id
SharedMemory
--name
LProcessor
\
--confile
test.xml
--unideb-add-levels
info,crit,warn,level9,system
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