diff options
author | Mikhail Gusarov <dottedmag@dottedmag.net> | 2010-04-14 03:03:17 +0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-04-13 20:17:24 -0700 |
commit | 5dea0c1caaeb0d7f1280fd28c80c3c1bc10c34d0 (patch) | |
tree | 32794a1ee94e69f298c30e1c6e7065d873478f93 /startx.cmd | |
parent | 2df4ba3b0ef40cefcac2774e042dad0d2df17424 (diff) |
Simplify environment juggling by using fork() instead of vfork()
xinit used to copy process environment in order to give client correct DISPLAY
and WINDOWPATH variables. It was not possible to do it in client process because
it was vforked, not forked.
As vfork() usage was not entirely correct (manpage specifies that behaviour is
undefined if there are any memory modifications between vfork and exec), switch
to fork(), move setting environment variables to client process and and drop all
the manual mucking with environment.
Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'startx.cmd')
0 files changed, 0 insertions, 0 deletions