Port to Solaris 10 sparc + Sun C 5.13
commit00119c6cb6b33161bc593947aa0991caf9d7ad65
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 12 Jun 2015 05:49:02 +0000 (11 22:49 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 12 Jun 2015 05:50:30 +0000 (11 22:50 -0700)
tree5f3f430b4b8cca1578700be14de36afaf908f3af
parentf7a381382b2468b1616e0649263c0c0e4bcf0748
Port to Solaris 10 sparc + Sun C 5.13

* configure.ac (SETUP_SLAVE_PTY) [sol2* | unixware]:
Adjust to process.c change.
* src/process.c (create_process): Declare volatile variables at
top level of this function, so that they're less likely to be
reused later in the function in the code executed by the vforked
child.  Do not declare locals used only in the vforked child, as
they might share memory with locals still live in the parent.
Instead, use the same variables in the child as in the parent.
This works around a subtle bug that causes a garbage collector
crash when Emacs is built with Sun C 5.13 sparc on Solaris 10.
configure.ac
src/process.c