Property GracefulShutdown
GracefulShutdown
Gets or sets whether to gracefully terminate the process on close.
public bool GracefulShutdown { get; set; }
Property Value
- bool
If
true, attempts graceful termination before forceful kill. Default istrue.
Remarks
When closing the transport:
- Stdin is closed to signal EOF to the subprocess
- Wait up to GracefulShutdownTimeout for normal exit
- If still running, forcefully terminate the process
Set to false if you need immediate termination (not recommended for servers
that need cleanup time).