How to solve this problem?

From: ÍõÀÚ (brytwang_at_gmail_dot_com)
Date: Sun Jan 13 2008 - 22:40:38 PST

  • Next message: Paul H. Hargrove: "Re: berkeley checkpointing"
    Dear Sir,
    I have a problem when I want to restart my program.
    I use the pipe mechanism you recommended.I fork a child to request the
    restart(after the parent process exits).
    In the child process, I call system("cr_restart filename") to restart my
    program,but it tells "Restart failed: Device or resource busy".
    In /var/log/messages or dmesg,it shows(I try several times):
    [314896.808000] cr_rstrt_child [16060]:  PID conflict found by
    cr_reserve_ids()
    [315044.720000] cr_rstrt_child [16136]:  PID conflict found by
    cr_reserve_ids()
    [315771.344000] cr_rstrt_child [16320]:  PID conflict found by
    cr_reserve_ids()
    [316017.984000] cr_rstrt_child [16469]:  PID conflict found by
    cr_reserve_ids()
    I can sure that the parent process which made the checkpoint is exited.
    So,I think some other processes may still run,but I can not tell why?
    Thank you very much for your help.
    
    Regards
    
    Daniel
    

  • Next message: Paul H. Hargrove: "Re: berkeley checkpointing"