Skip to content

Conversation

nxtn
Copy link
Contributor

@nxtn nxtn commented Apr 7, 2020

Fixes #95
Fixes #115
Fixes #245
Fixes #283
Fixes #295

Verified that the Java shutdown hook is triggered with @lafual's codes in #283 (comment).

Stopping child processes first never ever works. The Console Window Host (conhost.exe) does not have a console. It's a host process for the console window.

Contributes to #606

@nxtn nxtn added the bug label Apr 7, 2020
@nxtn nxtn added this to the 2.Next milestone Apr 7, 2020
@nxtn nxtn requested a review from oleg-nenashev as a code owner April 7, 2020 03:59
@nxtn nxtn changed the title Deprecate <stopparentprocessfirst> setting Remove <stopparentprocessfirst> setting Apr 11, 2020
@oleg-nenashev
Copy link
Member

It was addressing some old and odd use-cases I do not remember. CC @btk3000 who may be still using it

@nxtn nxtn changed the title Remove <stopparentprocessfirst> setting Remove <stopparentprocessfirst> setting and fix process termination Apr 13, 2020
@nxtn nxtn changed the base branch from master to v3 July 16, 2020 08:03
@winsw winsw deleted a comment from codecov bot Jul 16, 2020
@nxtn nxtn merged commit c454dcf into winsw:v3 Jul 16, 2020
@nxtn nxtn deleted the stopparentprocessfirst branch July 16, 2020 08:12
@nxtn nxtn modified the milestones: 2.Next, 3.Next Jul 16, 2020
@winsw winsw deleted a comment from codecov bot Jul 26, 2020
@nxtn nxtn linked an issue Aug 1, 2020 that may be closed by this pull request
@tadasu
Copy link

tadasu commented Sep 2, 2020

I'm running Jenkins agent.jar as a service, and it indicates error when stopping service with <stopparentprocessfirst>true</stopparentprocessfirst>.
An error event is logged in System.

The Jenkins agent (jenkinsagent-C__JenkinsAgent) service terminated unexpectedly.

Windows: Version 10.0.19041 Build 19041
JDK: AdoptOpenJDK 11.0.6.10 hotspot
Jenkins Agent: downloaded from Jenkins 2.235.5
WinSW: 2.10.2
Attached: Event logs, winsw xml file failed-to-stop.zip

@nxtn
Copy link
Contributor Author

nxtn commented Sep 3, 2020

@tadasu Please open a new issue next time. The bug reported is unrelated to this PR at all.

@tadasu
Copy link

tadasu commented Sep 3, 2020

@NextTurn Sorry for posting wrong place. opened #681.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants