]> sourceware.org Git - systemtap.git/commit
stapdyn: Fork output from stdout/stderr
authorJosh Stone <jistone@redhat.com>
Tue, 2 Oct 2012 18:23:48 +0000 (11:23 -0700)
committerJosh Stone <jistone@redhat.com>
Tue, 2 Oct 2012 18:41:41 +0000 (11:41 -0700)
commitf1ae3f0464ee48c9bc51be5d640fddf888e23227
tree5418a966b8ed9e7a1d23ad7c99cb0ed45d00b5f6
parent6da8678d6ec211e285acd5539fcf379c1c63454a
stapdyn: Fork output from stdout/stderr

We're still using the target's stdio (PR14491), but we're now using
separate FILE handles to do it, so we're not affected by the target
closing its own stdout early.

* runtime/dyninst/io.c (_stp_out, _stp_err): Private FILE handles.
  (_stp_clone_file): Clone a FILE handle, also setting FD_CLOEXEC.
  (_stp_warn, _stp_error, _stp_softerror, _stp_dbug): Use _stp_err.
* runtime/dyninst/print.c )_stp_print_flush): Use _stp_err and _stp_out.
* runtime/dyninst/runtime.h (stp_dyninst_ctor): Clone stderr and stdout.
  (stp_dyninst_dtor): Close _stp_err and _stp_out.
runtime/dyninst/io.c
runtime/dyninst/print.c
runtime/dyninst/runtime.h
This page took 0.028838 seconds and 5 git commands to generate.