mirror of https://github.com/BOINC/boinc.git
lib: Use FIFO service handle processing order
Done to avoid potential internal deps between service control manager and owned by it service to fire.
This commit is contained in:
parent
edac89740f
commit
4baa04e340
|
@ -48,12 +48,12 @@ bool is_daemon_installed()
|
|||
}
|
||||
}
|
||||
|
||||
if (schSCManager)
|
||||
CloseServiceHandle(schSCManager);
|
||||
|
||||
if (schService)
|
||||
CloseServiceHandle(schService);
|
||||
|
||||
if (schSCManager)
|
||||
CloseServiceHandle(schSCManager);
|
||||
|
||||
return bRetVal;
|
||||
}
|
||||
|
||||
|
@ -90,12 +90,12 @@ bool is_daemon_starting()
|
|||
}
|
||||
}
|
||||
|
||||
if (schSCManager)
|
||||
CloseServiceHandle(schSCManager);
|
||||
|
||||
if (schService)
|
||||
CloseServiceHandle(schService);
|
||||
|
||||
if (schSCManager)
|
||||
CloseServiceHandle(schSCManager);
|
||||
|
||||
return bRetVal;
|
||||
}
|
||||
|
||||
|
@ -132,12 +132,12 @@ bool is_daemon_running()
|
|||
}
|
||||
}
|
||||
|
||||
if (schSCManager)
|
||||
CloseServiceHandle(schSCManager);
|
||||
|
||||
if (schService)
|
||||
CloseServiceHandle(schService);
|
||||
|
||||
if (schSCManager)
|
||||
CloseServiceHandle(schSCManager);
|
||||
|
||||
return bRetVal;
|
||||
}
|
||||
|
||||
|
@ -174,12 +174,12 @@ bool is_daemon_stopping()
|
|||
}
|
||||
}
|
||||
|
||||
if (schSCManager)
|
||||
CloseServiceHandle(schSCManager);
|
||||
|
||||
if (schService)
|
||||
CloseServiceHandle(schService);
|
||||
|
||||
if (schSCManager)
|
||||
CloseServiceHandle(schSCManager);
|
||||
|
||||
return bRetVal;
|
||||
}
|
||||
|
||||
|
@ -216,12 +216,12 @@ bool is_daemon_stopped()
|
|||
}
|
||||
}
|
||||
|
||||
if (schSCManager)
|
||||
CloseServiceHandle(schSCManager);
|
||||
|
||||
if (schService)
|
||||
CloseServiceHandle(schService);
|
||||
|
||||
if (schSCManager)
|
||||
CloseServiceHandle(schSCManager);
|
||||
|
||||
return bRetVal;
|
||||
}
|
||||
|
||||
|
@ -313,12 +313,12 @@ bool start_daemon()
|
|||
}
|
||||
}
|
||||
|
||||
if (schSCManager)
|
||||
CloseServiceHandle(schSCManager);
|
||||
|
||||
if (schService)
|
||||
CloseServiceHandle(schService);
|
||||
|
||||
if (schSCManager)
|
||||
CloseServiceHandle(schSCManager);
|
||||
|
||||
return bRetVal;
|
||||
}
|
||||
|
||||
|
@ -411,12 +411,12 @@ bool stop_daemon()
|
|||
}
|
||||
}
|
||||
|
||||
if (schSCManager)
|
||||
CloseServiceHandle(schSCManager);
|
||||
|
||||
if (schService)
|
||||
CloseServiceHandle(schService);
|
||||
|
||||
if (schSCManager)
|
||||
CloseServiceHandle(schSCManager);
|
||||
|
||||
return bRetVal;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue