aboutsummaryrefslogtreecommitdiffstats
path: root/man3/setbuf.3
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@gmail.com>2012-08-03 06:28:46 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2012-08-03 10:33:49 +0200
commitca302d0ee368b699ffec4cd465ee02f3ed9fe1a1 (patch)
tree7a076533058b7dfb62e1a12f5dc0eeb6d1a2456e /man3/setbuf.3
parent65cee725a913678fa8cf4f3ab0d92bcc148937b2 (diff)
downloadman-pages-ca302d0ee368b699ffec4cd465ee02f3ed9fe1a1.tar.gz
ptrace.2: Explain WNOHANG behavior and EINTR bug
I didn't like ithe "SIGKILL operates similarly, with exceptions" phrase (if it's different, then it's not "similar", right?), and now I got around to changing it. Now it says simply: "SIGKILL does not generate signal-delivery-stop and therefore the tracer can't suppress it." Replaced "why WNOHANG is not reliable" example with a more realistic one (the one which actually inspired to add this information to man page in the first place): we got ESRCH - process is gone! - but waitpid(WNOHANG) can still confusingly return 0 "no processes to wait for". Replaced "This means that unneeded trailing arguments may be omitted" part with a much better recommendation to never do that and to supply zero arguments instead. (The part about "undocumentedness" of gcc behavior was bogus, btw - deleted). Expanded BUGS section with the explanation and an example of visible strace behavior on the buggy syscalls which exit with EINTR on ptrace attach. I hope this will lead to people submitting better bug reports to lkml about such syscalls. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3/setbuf.3')
0 files changed, 0 insertions, 0 deletions