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
fbed94ca
Commit
fbed94ca
authored
Sep 25, 2009
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bug:
http://bugs.etersoft.ru/show_bug.cgi?id=4319
parent
5a73a16c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
8 deletions
+24
-8
libuniset.spec
conf/libuniset.spec
+7
-1
Makefile.am
extensions/SharedMemory/Makefile.am
+2
-0
Configuration.cc
src/Various/Configuration.cc
+15
-7
No files found.
conf/libuniset.spec
View file @
fbed94ca
...
...
@@ -3,7 +3,7 @@
Name: libuniset
Version: 0.97
Release: eter
9
Release: eter
11
Summary: UniSet - library for building distributed industrial control systems
License: GPL
Group: Development/C++
...
...
@@ -178,6 +178,12 @@ rm -f %buildroot%_libdir/*.la
%exclude %_pkgconfigdir/libUniSet.pc
%changelog
* Wed Sep 23 2009 Pavel Vainerman <pv@altlinux.ru> 0.97-eter10
- new build
* Wed Sep 23 2009 Pavel Vainerman <pv@altlinux.ru> 0.97-eter9
- new mutex
* Tue Sep 22 2009 Pavel Vainerman <pv@etersoft.ru> 0.97-eter8
- new build
...
...
extensions/SharedMemory/Makefile.am
View file @
fbed94ca
...
...
@@ -5,6 +5,8 @@ libUniSetSharedMemory_la_LIBADD = $(SIGC_LIBS) $(top_builddir)/lib/libUniSet.la
$(top_builddir)
/extensions/lib/libUniSetExtensions.la
libUniSetSharedMemory_la_CPPFLAGS
=
$(SIGC_CFLAGS)
-I
$(top_builddir)
/extensions/include
libUniSetSharedMemory_la_SOURCES
=
SharedMemory.cc
#libUniSetSharedMemory_la_LDFLAGS = -version-info @LIBVER@
@PACKAGE@
_smemory_LDADD
=
libUniSetSharedMemory.la
@PACKAGE@
_smemory_CPPFLAGS
=
$(SIGC_CFLAGS)
-I
$(top_builddir)
/extensions/include
...
...
src/Various/Configuration.cc
View file @
fbed94ca
...
...
@@ -91,6 +91,7 @@ Configuration::Configuration():
localTimerService
(
UniSetTypes
::
DefaultObjectId
),
localDBServer
(
UniSetTypes
::
DefaultObjectId
),
localInfoServer
(
UniSetTypes
::
DefaultObjectId
),
localNode
(
UniSetTypes
::
DefaultObjectId
),
fileConfName
(
""
)
{
// unideb[Debug::CRIT] << " configuration FAILED!!!!!!!!!!!!!!!!!" << endl;
...
...
@@ -133,6 +134,7 @@ Configuration::Configuration( int argc, const char* const* argv, const string xm
localTimerService
(
UniSetTypes
::
DefaultObjectId
),
localDBServer
(
UniSetTypes
::
DefaultObjectId
),
localInfoServer
(
UniSetTypes
::
DefaultObjectId
),
localNode
(
UniSetTypes
::
DefaultObjectId
),
fileConfName
(
xmlfile
)
{
if
(
xmlfile
.
empty
()
)
...
...
@@ -152,6 +154,7 @@ Configuration::Configuration( int argc, const char* const* argv, ObjectIndex* _o
localTimerService
(
UniSetTypes
::
DefaultObjectId
),
localDBServer
(
UniSetTypes
::
DefaultObjectId
),
localInfoServer
(
UniSetTypes
::
DefaultObjectId
),
localNode
(
UniSetTypes
::
DefaultObjectId
),
fileConfName
(
fileConf
)
{
if
(
fileConf
.
empty
()
)
...
...
@@ -172,6 +175,7 @@ Configuration::Configuration( int argc, const char* const* argv, const string fi
localTimerService
(
UniSetTypes
::
DefaultObjectId
),
localDBServer
(
UniSetTypes
::
DefaultObjectId
),
localInfoServer
(
UniSetTypes
::
DefaultObjectId
),
localNode
(
UniSetTypes
::
DefaultObjectId
),
fileConfName
(
fileConf
)
{
if
(
fileConf
.
empty
()
)
...
...
@@ -264,13 +268,12 @@ void Configuration::initConfiguration( int argc, const char* const* argv )
transientIOR
=
false
;
localIOR
=
false
;
initParameters
();
string
lnode
(
getArgParam
(
"--localNode"
)
);
if
(
!
lnode
.
empty
()
)
setLocalNode
(
lnode
);
initParameters
();
// help
// if( !getArgParam("--help").empty() )
// help(cout);
...
...
@@ -455,8 +458,11 @@ void Configuration::initParameters()
if
(
name
==
"LocalNode"
)
{
string
nodename
(
it
.
getProp
(
"name"
)
);
setLocalNode
(
nodename
);
if
(
localNode
==
UniSetTypes
::
DefaultObjectId
)
{
string
nodename
(
it
.
getProp
(
"name"
)
);
setLocalNode
(
nodename
);
}
}
else
if
(
name
==
"LocalTimerService"
)
{
...
...
@@ -567,8 +573,10 @@ void Configuration::setLocalNode( string nodename )
if
(
localNode
==
DefaultObjectId
)
{
unideb
[
Debug
::
CRIT
]
<<
"(Configuration::setLocalNode): node '"
<<
nodename
<<
"' ?? ?????? ????????????? ObjectsMap!!!"
<<
endl
;
throw
Exception
(
"(Configuration::setLocalNode): node '"
+
nodename
+
"' ?? ?????? ????????????? ObjectsMap!!!"
);
stringstream
err
;
err
<<
"(Configuration::setLocalNode): Not found node '"
<<
nodename
<<
"'"
;
unideb
[
Debug
::
CRIT
]
<<
err
<<
endl
;
throw
Exception
(
err
.
str
());
}
oind
->
initLocalNode
(
localNode
);
}
...
...
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