|
@@ -194,6 +194,16 @@ class Process
|
|
return $this->exitcode;
|
|
return $this->exitcode;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Checks if the process ended successfully.
|
|
|
|
+ *
|
|
|
|
+ * @return Boolean true if the process ended successfully, false otherwise
|
|
|
|
+ */
|
|
|
|
+ public function isSuccessful()
|
|
|
|
+ {
|
|
|
|
+ return 0 == $this->exitcode;
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Returns true if the child process has been terminated by an uncaught signal.
|
|
* Returns true if the child process has been terminated by an uncaught signal.
|
|
*
|
|
*
|