OSDN Git Service

* cygheap.cc (dup_now): New function.
authorcgf <cgf>
Fri, 14 Sep 2001 00:49:00 +0000 (00:49 +0000)
committercgf <cgf>
Fri, 14 Sep 2001 00:49:00 +0000 (00:49 +0000)
commitae0faf406d5dd23a2ad1a77ac6f22515000b655b
treeb709b928f3bb8852f48031b2112e5e4327b11e55
parent07ad0daf538ec26634fbe34085b1f6a576297e4c
* cygheap.cc (dup_now): New function.
(cygheap_setup_for_child): Accept new argument controlling whether to delay
copying of cygheap to shared memory region.
(cygheap_setup_for_child_cleanup): Accept new arguments controlling whether to
copy cygheap at this point.
* cygheap.h: Reflect above changes.
* fork.cc (fork_parent): Break copying of cygheap into two parts when
fork_fixup is required so that the child can see the parent's changes.
(vfork): Do stack cleanup prior to forcing a fork error.
* spawn.cc (spawn_guts): Ditto.
winsup/cygwin/ChangeLog
winsup/cygwin/cygheap.cc
winsup/cygwin/cygheap.h
winsup/cygwin/fork.cc
winsup/cygwin/spawn.cc