ablog

不器用で落着きのない技術者のメモ

strace で出力される resumed の意味

If a system call is being executed and meanwhile another one is being
called from a different thread/process then strace will try to
preserve the order of those events and mark the ongoing call as being
unfinished. When the call returns it will be marked as resumed.

[pid 28772] select(4, [3], NULL, NULL, NULL
[pid 28779] clock_gettime(CLOCK_REALTIME, {1130322148, 939977000}) = 0
[pid 28772] <... select resumed> ) = 1 (in [3])

strace(1) - Linux manual page

プロセス1がシステムコールが実行されている時に、プロセス2がシステムコールを発行すると、時系列にトレースを出力するために、プロセス2のシステムコールをトレースに出力し、その後、終わっていなかったプロセス1のシステムコールを出力するときに resumed になるといった感じみたい。