-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RHEL-15110: RegisterServer is stopped, when not needed
* When some application starts RegisterServer using Start(), then it returns address. When this method is called multiple times and RegisterServer is still running, then the same address is returned. It means, when user starts multiple applications, then all of these applications should be able to use the same address to keep backward compatibility. The RegisterServer should be terminated only in the case, when the last application call Stop() and there is no running proccess using this RegisterServer. * This change does not allow to stop RegisterServer by some other user or application using Stop() method, when RegisterServer is still needed. * Non-root user can stop the RegisterServer only in the situation, when it is not needed by any application. * Implementation of Stop() method did not return anything explicitly, but the D-Bus method was designed to return boolean value. Thus, None object was interpreted as "False" value. It was fixed and it returns "True", when it was really stoped and it return "False", when it was not possible to stop it, because some application still uses RegisterServer. * It looks like that there was probably intention to use similar approach, but it has never been finished. * Modified some unit tests
- Loading branch information
1 parent
ba1e0e4
commit bc33776
Showing
4 changed files
with
84 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters