[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Patch for time-1.7



nikunj@bindaas.org (Nikunj A. Dadhania) writes:

> Hi,
> 
> I am hereby sending the patch of time package. 
> please try it out.
> 
> regards
> nikunj
> 
> PS. I don't know much about configure script but i have
> made it work. If there is any mistake please let me know
> 
> 
> --- time-1.7.orig/configure     Wed Jun 12 18:45:14 1996
> +++ time-1.7/configure  Fri Aug  3 10:51:23 2001
> @@ -1333,8 +1333,7 @@
>    default: /* Parent.  */
>      wait3(&i, 0, &r);
>      sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines.  */
> -    exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
> -        && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
> +    return 0;
>    }
>  }
>  EOF

I doubt this patch will go in, because it breaks systems on which wait3
doesn't work. When wait3 doesn't work, time reimplements rusage.

IMHO, The right thing to do is implementing wait3 correctly in Hurd (see
hurd-bugs mailing list).


-- 
Thomas Poindessous
EpX asso GNU/Linux de l'Epita
epx@epita.fr && http://www.epita.fr/~epx



Reply to: