Stop misleading

pull/608/head
Next Turn 2020-08-04 14:48:47 +08:00 committed by GitHub
parent 6d837472c1
commit b9f89e291d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -10,6 +10,6 @@ This hidden command is a flavor of the `restart` operation,
where winsw creates another winsw process in a separate process group, where winsw creates another winsw process in a separate process group,
and restarts the service from there. and restarts the service from there.
This additional indirection is necessary because Windows Service Control Manager (SCM) will kill child processes recursively when it stops a service. This additional indirection is necessary because WinSW will kill child processes recursively when it stops a service.
SCM doesn't provide the restart operation as an atomic operation either, so winsw implements restart by a sequence of stop and start. Windows Service Control Manager (SCM) doesn't provide the restart operation as an atomic operation either, so winsw implements restart by a sequence of stop and start.
The second winsw process in a separate process group ensures that winsw can survive this massacre to execute the start call. The second winsw process in a separate process group ensures that winsw can survive this massacre to execute the start call.