Two comments:

---

I would use _exit instead of standard exit in the process helper code,
as in the existing code, although unlike the existing code,
it doesn't seem to be a correctness issue.

---

I implemented

defaultPath

but should have tried to use confstr(_SC_PATH)

as in this example from the confstr manpage:

           char *pathbuf;
           size_t n;

           n = confstr(_CS_PATH,NULL,(size_t) 0);
           pathbuf = malloc(n);
           if (pathbuf == NULL)
               abort();
           confstr(_CS_PATH, pathbuf, n);

Of course, only within
#ifdef _CS_PATH

That's a small portability bug that is worth
fixing now that the jdk sources are targeting more platforms.

Martin

On Fri, May 22, 2009 at 03:05, Michael McMahon <[email protected]>wrote:

> Hi,
>
> I have just posted a webrev for 5049299: (process) Use posix_spawn, not
> fork, on S10 to avoid swap exhaustion.
>
> webrev location: 
> http://cr.openjdk.java.net/~michaelm/5049299/webrev.00/<http://cr.openjdk.java.net/%7Emichaelm/5049299/webrev.00/>
>

Reply via email to