* Fixed backgrounding (must be done before creating controllers, bug ID #23445

git-svn-id: trunk@26697 -
This commit is contained in:
michael 2014-02-06 22:06:44 +00:00
parent 6aaab457a7
commit 98dc27db1c

View File

@ -94,7 +94,8 @@ end;
procedure TCustomDaemonApplication.SysStartRunDaemons;
begin
if Application.HasOption('b','background') then
DaemonizeProgram;
end;
procedure TCustomDaemonApplication.SysEndRunDaemons;
@ -104,8 +105,6 @@ Var
DC : TDaemonController;
begin
if Application.HasOption('b','background') then
DaemonizeProgram;
For I:=ComponentCount-1 downto 0 do
If Components[i] is TDaemoncontroller then
begin