Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Feb 23, 2011
  1. @pozdnychev

    fix: avoid memory leakage in case realloc() fails

    pozdnychev authored committed
    [nelhage@nelhage.com: Change error handling slightly]
Commits on Feb 20, 2011
  1. Be smarter about choosing which fd's to attach.

    authored
    Instead of using readlink, stat() the child's file descriptors and
    compare the result to the device in /proc/$pid/stat and /dev/tty. This
    lets us properly attach a 'less' that is taking input from a pipe.
Commits on Feb 19, 2011
Commits on Feb 12, 2011
Commits on Feb 4, 2011
Commits on Jan 28, 2011
  1. Explicitly CONT the child on attach, and then STOP/CONT after attach.

    authored
    The explicit CONT on attach is needed in order for wait() to work on
    older kernels, and the STOP/CONT after attach is better at making bash
    notice the process is running again.
  2. Add a version number.

    authored
  3. Merge branch 'force-bg'

    authored
  4. Prefer mmap2() if present.

    authored
    i386 has an mmap(), but mmap2() is the one we want with the right
    calling convention.
Commits on Jan 27, 2011
  1. Initial ARM support.

    authored
    Thanks to Josh Dick for providing access to an ARM test and dev machine.
  2. Refactor architecture-dependent headers slightly.

    authored
    Start isolating x86-generic features into a common x86 header.
Commits on Jan 25, 2011
  1. Send the child an explicit SIGCONT once we're done.

    authored
    This causes bash to notice that the process is backgrounded, which prevents it
    from sending a SIGTERM when the original shell exits.
  2. Copy the termios settings before we background the target process.

    authored
    If the target /doesn't/ properly initialize the terminal after a
    SIGTSTP/continue (I'm looking at you, emacs), we need to be sure to grab the
    terminal state before we suspend it and the shell resets the terminal to cooked
    mode.
  3. Use wait4 instead of waitid().

    authored
    waitid() seems to return EINVAL sometimes, for reasons I don't understand.
  4. Try to stop the target with SIGTSTP before attaching.

    authored
    This should both cause the target process to redraw / reinitialize the
    terminal (since it thinks it's been backgrounded and restarted), and should give
    you back the old terminal, since it sees the process now running in the
    "background".
Commits on Jan 24, 2011
  1. Define some ptrace constants on platforms where ptrace.h is missing t…

    authored
    …hem.
    
    RHEL 5, in particular, supports all the options we need, but doesn't define them
    in userspace's ptrace.h.
Commits on Jan 23, 2011
  1. Don't clear c_cflag when setting raw mode on our tty.

    authored
    This makes tcsetattr return EINVAL on some systems, and there
    shouldn't be any flags in there we care about.
Commits on Jan 22, 2011
  1. Get offsetof from stddef.h.

    authored
    Reported-by: Anders Kaseorg <andersk@mit.edu>
Something went wrong with that request. Please try again.