Return current working directory even if it was removed
commit1da289af50bf6737fe99ebd58dbaa1a382a546da
authorStepan Palamarchuk <stepan@fb.com>
Thu, 6 Feb 2014 22:15:37 +0000 (6 14:15 -0800)
committerSara Golemon <sgolemon@fb.com>
Fri, 7 Feb 2014 18:32:14 +0000 (7 10:32 -0800)
tree702ae2a18aa002c0cf8871bbbd59ae6302d1d3e5
parentc8ded0f67b41d362e2d4c4467b36ceb46bbe0c52
Return current working directory even if it was removed

In case if CWD was delete  getcwd() will return NULL and that will crash hphp.
Having the correct CWD is essential to be able to resolve relative pathnames.

Reviewed By: @swtaarrs

Differential Revision: D1158933
hphp/util/process.cpp