[Xquartz-dev] My hack for reading .Xmodmap

Jeremy Huddleston jeremyhu at apple.com
Wed Nov 4 07:39:44 PST 2009


On Nov 3, 2009, at 19:05, Cameron Simpson wrote:

> On 03Nov2009 16:48, Jeremy Huddleston <jeremyhu at apple.com> wrote:
> | Here's the change I went with based on your original patch:
> | http://cgit.freedesktop.org/~jeremyhu/xserver/commit/?id=5e79976c13c5b94b12392b493846ca26be11750b
> 
> Isn't there a decent performance/resouce gain from a direct fork/exec
> rather than System() (which goes fork, exec-/bin/sh, then /bin/sh forks
> and then execs xmodmap because of the "&). And it would be prudent to
> close stdin in the child, too.

Yeah, that's all done in X11Controller.m's -launch_client: which additionally sets DISPLAY if it is not set correctly.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5820 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/xquartz-dev/attachments/20091104/ce187afc/attachment.bin>


More information about the Xquartz-dev mailing list