summaryrefslogtreecommitdiff
path: root/startx.man
diff options
context:
space:
mode:
authorMikhail Gusarov <dottedmag@dottedmag.net>2010-04-14 03:03:17 +0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2010-04-13 20:17:24 -0700
commit5dea0c1caaeb0d7f1280fd28c80c3c1bc10c34d0 (patch)
tree32794a1ee94e69f298c30e1c6e7065d873478f93 /startx.man
parent2df4ba3b0ef40cefcac2774e042dad0d2df17424 (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.man')
0 files changed, 0 insertions, 0 deletions