process.status

process.status

process.status

Function

Execute the command synchronously and return the exit code.

Syntax

Parameters

No parameters.

Return value

TypeDescription
IntReturns the process exit code; returns -1 if the exit code cannot be obtained.

Example

Notes

  • This method blocks the current process until the child process exits.