[PATCH xinit 02/14] Simplify environment juggling by using fork() instead of vfork()

Mikhail Gusarov dottedmag at dottedmag.net
Tue Apr 13 16:35:42 PDT 2010


Twas brillig at 16:31:50 13.04.2010 UTC-07 when
alan.coopersmith at oracle.com did gyre and gimble:

 AC> Mikhail Gusarov wrote:
 >> +    if (!setenv("WINDOWPATH", newwindowpath, TRUE))
 >> +        fprintf(stderr, "%s:  unable to set WINDOWPATH\n", program);

 AC> When I built and tried running it, this always reported a bogus error
 AC> until I changed it to:
 AC>     if (setenv("WINDOWPATH", newwindowpath, TRUE) != 0)
 AC>         Error("unable to set WINDOWPATH");

Whoops, stupid error. Thanks.

-- 
  http://fossarchy.blogspot.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100414/ead87b92/attachment.pgp>


More information about the xorg-devel mailing list