OK, let me check the health of your vfork() function.

 you can find attached in this e-mail a test program called vfork-test.c.

Usage:

#gcc vfork-test.c -o vfork-test

#./vfork-test

---

Please, send me the output (if it its ok, you will see nothing)

Note: Excecute the program a few times (because time() is not perfect)

2009/3/28 Singer, Michael <i...@sinweb.de>

> Hi Francois,
> Hi Yago,
> Thank you for building the Debian package unhide. I have the
> package "unhide_20080519-5 ~ debianbug-520254_amd64.deb" installed and
> implemented a trace with the command "strace -o unhide.txt unhide-linux26
> brute" Unfortunately unhide ends again with a memory access error.
>
> Do you need more information?
>
> Cheers
> Michael
>
>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>


int main () {
        
        int vpid;
        int status;
        
        time_t vforking;
        
        time_t waiting;
        
        if (vpid=vfork() == 0) { 
                
                        vforking = time(NULL);
                
                        sleep(10);
                        _exit(2) ;
                }
        
        waiting = time(NULL);
        
        if (waiting-vforking !=10) {
                
                printf("if you see this message something is wrong with 
vfork\n") ;
        }
        
        waitpid(vpid, &status, 0);
        
        exit (1);
}

Reply via email to