ports/devel/phpsh/files/patch-src____init__.py
Ashish SHUKLA 3174769db6 - Fix bug when subprocess exits with return code 0
- Fix WWW line in pkg-descr
- Add LICENSE information
- Fix portlint issues

PR:		191736
Submitted by:	Gasol Wu <gasol.wu at gmail.com>
2014-07-24 15:01:30 +00:00

11 lines
503 B
Python

--- ./src/__init__.py.orig 2014-07-08 19:24:25.000000000 +0800
+++ ./src/__init__.py 2014-07-08 19:24:45.000000000 +0800
@@ -758,7 +758,7 @@
ret_code = self.p.poll()
if debug:
print "ret_code: " + str(ret_code)
- if ret_code != None:
+ if ret_code not in (None, 0):
if debug:
print "NOOOOO"
print "subprocess died with return code: " + repr(ret_code)