linux-下-system-返回值精编.docVIP

  • 15
  • 0
  • 约4.05千字
  • 约 5页
  • 2019-02-02 发布于四川
  • 举报
linux 下 system 返回值 1.10 Whats the return value of system/pclose/waitpid? 1.10 system/pclose/waitpid的返回值是什么? The return value of system(), pclose(), or waitpid() doesnt seem to be the exit value of my process... or the exit value is shifted left 8 bits... whats the deal? system(),pclose(),或waitpid()的返回值不像是我的进程的退出值……或者退出值被 左移了8位……怎么回事? /* ??说了什么,我也不知道呀 */ The man page is right, and so are you! If you read the man page for waitpid() youll find that the return code for the process is encoded. The value returned by the process is normally in the top 16 bits, and the rest is used for other thin

文档评论(0)

1亿VIP精品文档

相关文档