diff options
author | Petr Machata <pmachata@redhat.com> | 2012-03-02 00:10:37 +0100 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-04-19 01:12:50 +0200 |
commit | c805c624d4cd23674bbc18f9d0f97c5d8dcdff7c (patch) | |
tree | 8560d40ada7f1e5fb5c7caa17696c1b2474f876b /common.h | |
parent | 29add4fdf852b10ddd22cac0d1390f6d01577bc2 (diff) | |
download | ltrace-c805c624d4cd23674bbc18f9d0f97c5d8dcdff7c.tar.gz |
wait_for_proc may fail, and should simply waitpid instead of ptracing
- which means that we need to continue the process after starting it,
the same as we do when attaching
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -170,7 +170,7 @@ extern int process_tasks(pid_t pid, pid_t **ret_tasks, size_t *ret_n); extern int process_stopped(pid_t pid); extern enum process_status process_status(pid_t pid); extern void trace_set_options(Process * proc, pid_t pid); -extern void wait_for_proc(pid_t pid); +extern int wait_for_proc(pid_t pid); extern void trace_me(void); extern int trace_pid(pid_t pid); extern void untrace_pid(pid_t pid); |