首页 文章
  • 0 votes
     answers
     views

    SIGCHLD没有被 grab

    我打算将以下代码作为子进行fork和exec“sleep 3”,同时父进程休眠10秒 . 我希望父进程在3s之后接收SIGCHLD,当“sleep 3”完成时 . 这不会发生,而是我得到: main parent process parent sleeping for 10s child process child start, command: /bin/sleep, args: 0x7fffc...

热门问题