duanhui1185 2013-08-19 02:28
浏览 75
已采纳

proc_close在Windows服务器上的退出代码为2

I've been using php wkhtmltopdf and noticed that when using the proc_close function on windows, it returns a value of 2. I've looked for what this exit code means and I can't seem to spot a reference to it. The two codes for proc_close seem to be 0 and -1. I was wondering if anyone could shed some more light on what this error code means. Many thanks.

  • 写回答

1条回答 默认 最新

  • doushui3061 2013-08-19 02:51
    关注

    The manual says:

    (proc_close) Returns the termination status of the process that was run. In case of an error then -1 is returned.

    So the process returns 2 which is likely an error code. Check the documentation of the process you are calling for the meaning of that error state

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部