OSDN Git Service

* perthread.h (vfork_save): Add ctty, sid, pgid, exitval fields.
authorcgf <cgf>
Sun, 18 Aug 2002 05:49:25 +0000 (05:49 +0000)
committercgf <cgf>
Sun, 18 Aug 2002 05:49:25 +0000 (05:49 +0000)
commit97990e61d7dfa456efd573773a501343706662cb
tree21b7c7293119a9343d1a739c6277b187774be293
parent59205b0ac266fd52824285f5a8024334796af0ad
* perthread.h (vfork_save): Add ctty, sid, pgid, exitval fields.
(vfork_save::restore_pid): New method.
(vfork_save::restore_exit): New method.
* fork.cc (vfork): Save ctty, sid, pgid and restore them when returning to
"parent".  Use exitval field if exiting but never created a new process.
* syscalls.cc (setsid): Detect when in "vfork" and force an actual fork so that
pid will be allocated (UGLY!).
(getsid): New function.
* dcrt0.cc (do_exit): Use vfork_save::restore_exit method for returning from a
vfork.
* spawn.cc (spawnve): Use vfork_save::{restore_pid,restore_exit} methods for
returning from vfork.
* cygwin.din: Export getsid.
* include/cygwin/version.h: Bump api minor number.
* malloc.cc: #ifdef sYSTRIm for when MORECORE_CANNOT_TRIM is true.
winsup/cygwin/ChangeLog
winsup/cygwin/cygwin.din
winsup/cygwin/dcrt0.cc
winsup/cygwin/fork.cc
winsup/cygwin/include/cygwin/version.h
winsup/cygwin/malloc.cc
winsup/cygwin/perthread.h
winsup/cygwin/spawn.cc
winsup/cygwin/syscalls.cc