Process stuck in exit, shows as zombie but cannot be reaped

前端 未结 1 1788
你的背包
你的背包 2021-01-03 11:29

I have a process that\'s monitored by its parent. The child encountered an error that caused it to call abort. The process does not tamper with the abort proces

1条回答
  •  执笔经年
    2021-01-03 12:10

    I finally figured it out! The process was actually doing useful work all this time. The process held the last reference to a large file on a slow filesystem. When the process terminates, the last reference to the file is release, forcing the OS to reclaim the space. The file was so large that this required tens of thousands of I/O operations, taking 10 minutes or more.

    0 讨论(0)
提交回复
热议问题