Skip to content

[process] expose the process status. #5455

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

boombatower
Copy link
Contributor

Pull request for issue #5453.

@@ -678,6 +678,26 @@ public function setEnhanceWindowsCompatibility($enhance)
$this->enhanceWindowsCompatibility = (Boolean) $enhance;
}

public function getStatus()
{
return $this->status;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure you don't have to do a $this->updateStatus(); here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It makes sense to add them to both getStatus() and isTerminated(), but isStarted() should be fine since run() and start() will set status and check is only against != STATUS_READY.

@pborreli
Copy link
Contributor

pborreli commented Sep 7, 2012

👍

@ghost
Copy link

ghost commented Sep 21, 2012

This PR is missing the patch header in the description https://github.com/symfony/symfony-docs/blob/master/contributing/code/patches.rst#make-a-pull-request

@@ -678,6 +678,30 @@ public function setEnhanceWindowsCompatibility($enhance)
$this->enhanceWindowsCompatibility = (Boolean) $enhance;
}

public function getStatus()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The phpdoc is missing

@stof
Copy link
Member

stof commented Oct 13, 2012

@boombatower can you update the PR according to my comments and add some tests ?

@fabpot fabpot closed this in 41cb44b Oct 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants