Skip to content
Commits on Jan 28, 2011
  1. Add a version number.

    committed Jan 27, 2011
  2. Merge branch 'force-bg'

    committed Jan 27, 2011
  3. Prefer mmap2() if present.

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

    Thanks to Josh Dick for providing access to an ARM test and dev machine.
    committed Jan 26, 2011
  2. Refactor architecture-dependent headers slightly.

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

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

    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.
    committed Jan 25, 2011
  3. Use wait4 instead of waitid().

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

    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".
    committed Jan 25, 2011
Commits on Jan 24, 2011
  1. Define some ptrace constants on platforms where ptrace.h is missing t…

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

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

    Reported-by: Anders Kaseorg <andersk@mit.edu>
    committed Jan 22, 2011
  2. Add a note about pronunciation.

    committed Jan 22, 2011
  3. Add some more error diagnostics.

    committed Jan 22, 2011
  4. Fix compilation on amd64.

    committed Jan 22, 2011
  5. Handle attaching to processes that are already session leaders.

    These are actually easier -- we just need to TIOCNOTTY, instead of
    playing games with a dummy child and setsid.
    committed Jan 22, 2011
  6. @ingramj

    Fix a compiler error in ptrace.c

    On some systems, including sys/user.h before sys/types.h causes a
    compiler error. Changing the order of the #includes fixes the error.
    ingramj committed Jan 22, 2011
  7. Add a synopsis line for clarity.

    committed Jan 21, 2011
  8. Add a COPYING and README.

    committed Jan 21, 2011
Something went wrong with that request. Please try again.