]> source.dussan.org Git - gitea.git/commit
Fix regression from #14623 - use debug SVC handler only on interactive sessions ...
authorzeripath <art27@cantab.net>
Wed, 31 Mar 2021 19:48:48 +0000 (20:48 +0100)
committerGitHub <noreply@github.com>
Wed, 31 Mar 2021 19:48:48 +0000 (22:48 +0300)
commit113c1557ff2dc0ae379709d7a9607e567c70e1d1
treec34517a9e388a84d49a2a06b0c614ad9c405ed23
parent79ac7468dc541bafc9a7174882c9ff31792089d6
Fix regression from #14623 - use debug SVC handler only on interactive sessions (#15210)

Unfortunately #14623 changed from the deprecated IsInteractiveSession to
IsWindowsService without recognising that they are the complement of
each other.

This means that Windows SVC control is not working correctly. This PR
adds some Tracing statements but also fixes the bug.

Fix #15159

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
modules/graceful/manager_windows.go