using blcr on program with fork

From: Andrea Autiero S143785 (andrea.autiero_at_studenti.polito.it)
Date: Mon Feb 23 2009 - 02:55:44 PST

  • Next message: Paul H. Hargrove: "Re: What does this error message mean?"
    hi!
    it's me another time..
    after made statically linked file with blcr I've got another problem..
    I'm trying to checkpoint a program after it forks twice
    then from another shell (but in the future it will be done by the program
    itself)
    i try to checkpoint it and the answer is:
     >ps -a
       PID TTY          TIME CMD
       5878 pts/0    00:00:00 controller
       5879 pts/0    00:00:02 controller
       5880 pts/0    00:00:02 controller
       5881 pts/1    00:00:00 ps
     >cr_checkpoint 5878
    Checkpoint failed: Invalid argument
    
    5878 is the father..
    i've compiled it by 
        >gcc -o controller controller.c -L/usr/local/lib/ -lcr_run -u
    cr_run_link_me -ldl -lpthread
        >nm controller | grep _link_me
             U cr_run_link_me
    
    (now is not statically linked because I'm trying on a pc and not on an
    embedded system, but is in the last one that it must work)
    why it do this?could you help me to make it works?
    thanks..
    have a good day
    Andrea Autiero
    

  • Next message: Paul H. Hargrove: "Re: What does this error message mean?"