[MLton-devel] Solaris port
Alain Deutsch
deutsch@polyspace.com
Thu, 05 Jun 2003 18:56:53 +0200
>
>
>We can cache getpid in gcState and ensure that there is never more
>than one cal to getpid () per process.
>
>
I am not sure it will work as getpid() is used by the libc function
getrusage(). And getpid() is itself a system call, hence trick to
redefine in C.
Are you thinking of redefining you own getrusage() which would call your
vesin of getpid() ?
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel