Ignore:
Timestamp:
Jul 2, 2008, 4:35:26 PM (7 years ago)
Author:
sam
Message:
  • Fork the grabbed process and exit the parent. Unfortunately for some reason it still survives as a zombie, there must be something wrong with the setsid/setpgid mechanism we use (maybe setpgrp is needed?).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/mytrace.h

    r2514 r2516  
    1616
    1717struct mytrace* mytrace_attach(long int pid);
     18struct mytrace* mytrace_fork(struct mytrace *t);
    1819int mytrace_detach(struct mytrace *t);
     20long mytrace_getpid(struct mytrace *t);
    1921
    2022int mytrace_open(struct mytrace *t, char const *path, int mode);
     
    2527int mytrace_setsid(struct mytrace *t);
    2628int mytrace_kill(struct mytrace *t, long pid, int sig);
     29int mytrace_exit(struct mytrace *t, int status);
    2730
Note: See TracChangeset for help on using the changeset viewer.