Search:

Type: Posts; User: tommyb05

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    1,579

    Quick Null Termination Question

    which is correct:



    #define SIZE 1024
    .....
    char buffer[SIZE];
    .....
    buffer[SIZE] = '\0';
    .....
  2. Replies
    8
    Views
    10,144

    Alright, I believe I understand a little better...

    Alright, I believe I understand a little better now. Heres what I see when I run this code:

    The program launches (and I want it to die 5 seconds after its launched)

    I have to manually click "X"...
  3. Replies
    2
    Views
    898

    Thank you very much, works perfectly! :)

    Thank you very much, works perfectly! :)
  4. Replies
    8
    Views
    10,144

    I'm pretty sure I wait() takes in an int for the...

    I'm pretty sure I wait() takes in an int for the child process's status (s here), but that isn't my problem. I can sleep() all I want but it still kills the process AFTER I close it manually, not...
  5. Replies
    2
    Views
    898

    Writing within a loop

    This code is supposed to run through a loop and write data to a file descriptor.



    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <unistd.h>

    void format(int n, char...
  6. Replies
    8
    Views
    10,144

    Killing A Process

    The purpose of the following code is to complete this goal: launch a process, get its status, and then kill it.



    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include...
  7. Replies
    9
    Views
    7,782

    If happens as soon as I run the child process as...

    If happens as soon as I run the child process as the code is wrote. But I found if I use WIFSTOPPED instead of WIFSIGNALED to see the current signal, things work out.
  8. Replies
    9
    Views
    7,782

    Thanks. I'm catching the signals now, but I'm...

    Thanks. I'm catching the signals now, but I'm crashing the program before the signal is caught? Is there a way to catch the signal before I crash it with the overflow?
  9. Replies
    9
    Views
    7,782

    Does anyone here know how to achieve my goal...

    Does anyone here know how to achieve my goal (which you can find if you read above)?
  10. Replies
    9
    Views
    7,782

    The problem was putting PTRACE_CONT in the right...

    The problem was putting PTRACE_CONT in the right spot, right after the fork() statement.. so thats fixed. Now its not catching the signals of the child, bleh :(

    Anyone got any ideas?
  11. Replies
    9
    Views
    7,782

    Tracing execution with Ptrace

    I've asked a couple others places but no one yet has been able to get my program to work correctly. So please hear me out!

    I'm writing a simple linux tracing debugger that will trace a child...
Results 1 to 11 of 11