({{, (RefLink[KillProcess, paclet:ref/KillProcess])[proc] 
kills the external process represented by the (RefLink[ProcessObject, paclet:ref/ProcessObject]) proc.}})

OpenersNotesSection(Spacer1)Details

On Unix-like systems, (RefLink[KillProcess, paclet:ref/KillProcess])[proc,n] sends signal n to the process.

OpenersPrimaryExamplesSection(Spacer1)Examples  (2)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Start the system shell process:

process=StartProcess[$SystemShell]

Kill the process:

KillProcess[process];
Pause[0.1];

Check that the process has actually finished:

ProcessStatus[process]

Start five system shell processes:

StartProcess[$SystemShell]&/@Range[5]

Show the list of processes that were started using (RefLink[StartProcess, paclet:ref/StartProcess]):

Processes[]

Kill all processes that were started using (RefLink[StartProcess, paclet:ref/StartProcess]):

KillProcess/@Processes[];

Check that all processes have actually finished:

Processes[]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[StartProcess, paclet:ref/StartProcess])  ▪  (RefLink[ProcessStatus, paclet:ref/ProcessStatus])  ▪  (RefLink[CloseKernels, paclet:ref/CloseKernels])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Calling External Programs, paclet:guide/CallingExternalPrograms])}, {▪(RefLinkPlain[Direct Control of External Processes, paclet:guide/DirectControlOfExternalProcesses])}, {▪(RefLinkPlain[External Language Interfaces, paclet:guide/ExternalLanguageInterfaces])}})}})