Permalink
Switch branches/tags
Nothing to show
Commits on Jan 25, 2011
Commits on Jan 24, 2011
  1. Define some ptrace constants on platforms where ptrace.h is missing t…

    nelhage committed Jan 24, 2011
    …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.

    nelhage committed Jan 23, 2011
    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.

    nelhage committed Jan 22, 2011
    Reported-by: Anders Kaseorg <andersk@mit.edu>
  2. Fix compilation on amd64.

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

    nelhage committed Jan 22, 2011
    These are actually easier -- we just need to TIOCNOTTY, instead of
    playing games with a dummy child and setsid.
  4. Fix a compiler error in ptrace.c

    ingramj committed Jan 22, 2011
    On some systems, including sys/user.h before sys/types.h causes a
    compiler error. Changing the order of the #includes fixes the error.
  5. Add a COPYING and README.

    nelhage committed Jan 22, 2011
  6. ptrace: Make error handling consistent.

    nelhage committed Jan 22, 2011
    Use an error field in 'struct ptrace', and consistently return -1 on
    failure.
Commits on Jan 20, 2011
  1. Add a minimal usage message.

    nelhage committed Jan 20, 2011
Commits on Jan 18, 2011
  1. Fix the rt_sigaction call.

    nelhage committed Jan 18, 2011
    sizeof(sigset_t) is something ludicrous like 0x80 in userspace. Just hard-code
    it at 8, since all the userspace definitions seem to be lies.
  2. Actually kill stub.c

    nelhage committed Jan 18, 2011
  3. Add a 'clean' target.

    nelhage committed Jan 18, 2011
  4. Check in my NOTES file.

    nelhage committed Jan 18, 2011
  5. Don't allow the child to run unchecked between two syscalls.

    nelhage committed Jan 18, 2011
    We were letting the child return from fork() and run to the next
    syscall. This happened to work on my system with 'less', but
    segfaulted on mutt. Instead, we need to reset the child to before the
    syscall point, so that none of its code is ever run.
  6. Checkpoint working version.

    nelhage committed Jan 18, 2011