언어

ProcessStartInfo.KillOnParentExit 속성

정의

부모 프로세스가 종료될 때 자식 프로세스를 종료해야 하는지 여부를 나타내는 값을 가져오거나 설정합니다.

public:
 property bool KillOnParentExit { bool get(); void set(bool value); };
[System.Runtime.Versioning.SupportedOSPlatform("android")]
[System.Runtime.Versioning.SupportedOSPlatform("linux")]
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public bool KillOnParentExit { get; set; }
[<System.Runtime.Versioning.SupportedOSPlatform("android")>]
[<System.Runtime.Versioning.SupportedOSPlatform("linux")>]
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
member this.KillOnParentExit : bool with get, set
Public Property KillOnParentExit As Boolean

속성 값

true부모 종료 시 자식 프로세스를 종료하려면 입니다. 그렇지 않으면 . false 기본값은 false입니다.

특성

설명

이 속성을 설정 true하면 부모가 정상적으로 종료되는지 또는 충돌하는지에 관계없이 부모 프로세스가 종료되면 운영 체제가 자식 프로세스를 자동으로 종료합니다.

이 속성은 다음으로 설정된 true상태에서 UseShellExecute 함께 사용할 수 없습니다.

Windows 동작은 JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE 플래그와 함께 작업 개체를 사용하여 구현됩니다.

Linux 및 Android에서 동작은 .를 사용하여 prctl(PR_SET_PDEATHSIG)구현됩니다.

적용 대상