fork() ? - Unix

This is a discussion on fork() ? - Unix ; I want the time of last fork() call in my program. How can I know this time?...

+ Reply to Thread
Results 1 to 2 of 2

Thread: fork() ?

  1. fork() ?

    I want the time of last fork() call in my program. How can I know this
    time?


  2. Re: fork() ?

    > I want the time of last fork() call in my program. How can I know this
    > time?


    You could record the time yourself:

    last_fork_time = time(NULL);
    pid = fork();


    -- Lars

    --
    Lars Kellogg-Stedman <8273grkci8q8kgt@jetable.net>
    This email address will expire on 2005-11-23.


+ Reply to Thread