commit | 04f8b4860f12512186481ca21dbd311d9d612326 | [log] [tgz] |
---|---|---|
author | Dmitry V. Levin <ldv@altlinux.org> | Tue Aug 16 18:57:29 2011 +0000 |
committer | Denys Vlasenko <dvlasenk@redhat.com> | Tue Aug 23 12:53:00 2011 +0200 |
tree | c3fa5ed4240c6db16763c399a9fdda2ef7647a34 | |
parent | 25caa318eedf38200cd7660320d95bf4662c6c5b [diff] |
Fix PTRACE_SETOPTIONS tests * strace.c [LINUX] (kill_save_errno): New function. (test_ptrace_setoptions_followfork): Change return type to void. Fix and harden error handling. Use kill_save_errno() to avoid errno clobbering. Treat EIO from ptrace() the same way as EINVAL. (test_ptrace_setoptions_for_all): Use kill_save_errno() to avoid errno clobbering. Treat EIO from ptrace() the same way as EINVAL. (main): Update use of test_ptrace_setoptions_followfork().