newlib/winsup/cygwin
Christopher Faylor a939686807 * child_info.h (CURR_CHILD_INFO_MAGIC): Regenerate.
(child_info::retry): Move here from fork subclass.
(child_info::exit_code): New field.
(child_info::retry_count): Max retry count for process start.
(child_info::proc_retry): Declare new function.
(child_info_fork::retry): Move to parent.
(child_info_fork::fork_retry): Ditto.
* dcrt0.cc (child_info::fork_retry): Rename and move.
(child_info_fork::handle_failure): Move.
(dll_crt0_0): Initialize console handler based on whether we have a controlling
tty or not.  Avoid nonsensical check for fork where it can never occur.
* environ.cc (set_proc_retry): Rename from set_fork_retry.  Set retry_count in
child_info.
(parse_thing): Reflect above change.
* exceptions.cc (dummy_ctrl_c_handler): Remove unused variable name.
(ctrl_c_handler): Always return TRUE for the annoying CTRL_LOGOFF_EVENT.
* fhandler_termios.cc (fhandler_termios::tcsetpgrp): Remove call to
init_console_handler.
* fhandler_tty.cc (fhandler_tty_slave::open): Just call mange_console_count
here and let it decide what to do with initializing console control handling.
* fork.cc (fork_retry): Remove definition.
(frok::parent): Define static errbuf and use in error messages (not thread safe
yet).  Close pi.hThread as soon as possible.  Protect pi.hProcess as soon as
possible.  Don't set retry_count.  That happens automatically in the
constructor now.  Accommodate name change from fork_retry to proc_retry.
* init.cc (dll_entry): Turn off ctrl-c handling early until we know how it is
supposed to be handled.
* pinfo.cc (_pinfo::dup_proc_pipe): Remember original proc pipe value for
failure error message.  Tweak debug message slightly.
* sigproc.cc (child_info::retry_count): Define.
(child_info::child_info): Initialize retry count.
(child_info::sync): Set exit code if process dies before synchronization.
(child_info::proc_retry): Rename from child_info_fork::fork_retry.  Use
previously derived exit code.  Be more defensive about what is classified as an
error exit.
(child_info_fork::handle_failure): Move here from dcrt0.cc.
* spawn.cc (spawn_guts): Maintain error mode when starting new process to avoid
annoying pop ups.  Move deimpersonate call within new loop.  Move envblock
freeing to end.  Loop if process dies prematurely with bad exit code.
* syscalls.cc (init_console_handler): Remove hopefully unneeded call to
init_console_handler.
2006-03-18 19:17:21 +00:00
..
config/i386 * gendef (stabilize_sig_stack): New function. 2004-02-18 20:48:38 +00:00
include * include/sys/dirent.h (struct __DIR): Rename __d_unused to 2006-03-01 13:47:49 +00:00
lib * lib/libcmain.c (main): Properly deal with quoted first argument. 2004-12-09 21:28:32 +00:00
libc * cygtls.cc (_cygtls::handle_threadlist_exception): Make an error fatal. 2005-12-23 22:50:20 +00:00
regex * cygtls.cc (_cygtls::handle_threadlist_exception): Make an error fatal. 2005-12-23 22:50:20 +00:00
regexp
CYGWIN_LICENSE
ChangeLog * child_info.h (CURR_CHILD_INFO_MAGIC): Regenerate. 2006-03-18 19:17:21 +00:00
ChangeLog-1995 white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
ChangeLog-1996 white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
ChangeLog-1997 white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003 fix typo 2004-01-20 03:11:39 +00:00
ChangeLog-2004 * ChangeLog: Split and create ChangeLog-2004. 2005-01-11 12:48:34 +00:00
ChangeLog-2005 fix minor typo 2006-01-16 19:52:21 +00:00
Makefile.in * libc: Add subdirectory. 2005-11-18 17:48:23 +00:00
ROADMAP
acconfig.h * exceptions.cc (set_signal_mask): Redefine to not pass by address. Report 2003-12-23 16:26:31 +00:00
analyze_sigfe * analyze_sigfe: New script. 2006-03-01 20:20:22 +00:00
ansi.sgml minor cleanup 2004-12-05 02:30:20 +00:00
assert.cc
autoload.cc * autoload.cc (LoadDLLfuncNt): New define to wrap NT native functions. 2006-03-13 11:22:51 +00:00
automode.c
binmode.c
child_info.h * child_info.h (CURR_CHILD_INFO_MAGIC): Regenerate. 2006-03-18 19:17:21 +00:00
config.h.in white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
configure * dllfixdbg: New perl script. 2005-08-08 02:27:43 +00:00
configure.in * dllfixdbg: New perl script. 2005-08-08 02:27:43 +00:00
cpuid.h * path.cc (chdir): Always use the normalized_path as posix_cwd, except if it 2004-05-28 19:50:07 +00:00
crt0.c * crt0.cc: Remove PPC considerations. 2005-09-29 14:28:22 +00:00
ctype.cc * include/ctype.h: New file. 2005-03-23 17:11:24 +00:00
cxx.cc * child_info.h (fork_info): Use different method to alias variable. 2005-03-19 21:45:15 +00:00
cygerrno.h * cygerrno.h (geterrno_from_win_error): Change declaration to default to using 2005-08-20 06:19:55 +00:00
cygheap.cc * cygheap.cc (init_cygheap::manage_console_count): Turn console control handler 2006-03-16 02:57:37 +00:00
cygheap.h * cygheap.h (init_cygheap::manage_console_count): Declare new function. 2005-11-14 04:28:45 +00:00
cygmagic * cygmagic: Remove debugging cruft missed on 2005-05-21. 2005-05-30 00:54:01 +00:00
cygmalloc.h * malloc.cc: Update to version 2.8.3. 2005-12-10 17:09:58 +00:00
cygserver.h * cygserver.h (CYGWIN_SERVER_VERSION_API): Bump. 2004-06-03 19:52:12 +00:00
cygserver_ipc.h * debug.h (console_printf): Define for non-debugging condition. 2004-02-09 04:04:24 +00:00
cygserver_msg.h Change foo (void) to foo () for all c++ functions throughout. Remove all 2005-07-05 03:16:46 +00:00
cygserver_sem.h Change foo (void) to foo () for all c++ functions throughout. Remove all 2005-07-05 03:16:46 +00:00
cygserver_shm.h Change foo (void) to foo () for all c++ functions throughout. Remove all 2005-07-05 03:16:46 +00:00
cygthread.cc * cygwin.din: Fix some erroneous SIGFE/NOSIGFE settings. 2006-03-01 21:31:24 +00:00
cygthread.h Change process_lock to lock_process throughout. Change all calls to new 2005-10-17 23:27:00 +00:00
cygtls.cc * cygtls.cc (_cygtls::remove): Reset initialized flag right away if we were 2006-03-13 04:26:57 +00:00
cygtls.h * cygtls.cc (_cygtls::remove): Reset initialized flag right away if we were 2006-03-13 04:26:57 +00:00
cygwin-shilka
cygwin.din * cygtls.h (CYGTLS_INITIALIZED): Change to a little more unlikely value. 2006-03-12 23:57:05 +00:00
cygwin.sc * cygwin.sc: Use simpler method to align .cygheap. 2005-08-08 13:53:05 +00:00
cygwin_version.h
dcrt0.cc * child_info.h (CURR_CHILD_INFO_MAGIC): Regenerate. 2006-03-18 19:17:21 +00:00
debug.cc * dcrt0.cc (do_exit): Rely on sigproc_terminate to set exit_state 2005-09-13 17:08:54 +00:00
debug.h Eliminate (void) cast on standalone function calls throughout. 2005-07-06 20:05:03 +00:00
delqueue.cc
devices.cc * dcrt0.cc (do_exit): Rely on sigproc_terminate to set exit_state 2005-09-13 17:08:54 +00:00
devices.h * devices.h (_major): Revert previous ill-advised change. 2005-12-02 00:37:21 +00:00
devices.in * dcrt0.cc (do_exit): Rely on sigproc_terminate to set exit_state 2005-09-13 17:08:54 +00:00
dir.cc * dir.cc (opendir): Fix indentation. 2006-03-03 20:19:26 +00:00
dlfcn.cc * dlfcn.cc (check_path_access): Call find_exec with FE_DLL option. 2006-01-31 21:49:39 +00:00
dll_init.cc * dcrt0.cc (main_environ): Initialize to &__cygwin_environment. 2006-03-14 19:07:36 +00:00
dll_init.h * dcrt0.cc (do_global_dtors): Run DLL dtors. 2005-04-14 17:34:03 +00:00
dll_init.sgml 2004-01-12 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 2004-02-22 23:21:20 +00:00
dllfixdbg * analyze_sigfe: New script. 2006-03-01 20:20:22 +00:00
dlmalloc.c remove keyword stuff 2004-05-12 16:21:18 +00:00
dlmalloc.h * include/cygwin/version.h: Bump DLL minor number to 8. 2004-01-20 19:36:35 +00:00
dtable.cc * autoload.cc (LoadDLLfuncNt): New define to wrap NT native functions. 2006-03-13 11:22:51 +00:00
dtable.h * cygheap.h (cygheap_fdenum::cygheap_fdenum): Record locked state or suffer 2005-10-23 23:47:45 +00:00
dtable.sgml 2004-01-12 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 2004-02-22 23:21:20 +00:00
environ.cc * child_info.h (CURR_CHILD_INFO_MAGIC): Regenerate. 2006-03-18 19:17:21 +00:00
environ.h * environ.h (win_env::immediate): Declare new field. 2005-03-30 15:54:28 +00:00
errno.cc * errno.cc (errmap): Map ERROR_SEEK and ERROR_SECTOR_NOT_FOUND. 2005-09-26 15:27:15 +00:00
exceptions.cc * child_info.h (CURR_CHILD_INFO_MAGIC): Regenerate. 2006-03-18 19:17:21 +00:00
exec.cc minor comment restructuring 2006-02-15 22:11:13 +00:00
external.cc * external.cc (sync_winenv): Rename from "setup_winenv". Use same mechanism as 2006-02-10 17:22:34 +00:00
external.sgml 2004-01-12 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 2004-02-22 23:21:20 +00:00
fcntl.cc Reorganize header file inclusion throughout so that cygerrno.h comes first. 2005-01-12 22:40:46 +00:00
fhandler.cc * fhandler.cc (fhandler_base::open): Add FILE_READ_ATTRIBUTES to 2006-02-22 16:40:42 +00:00
fhandler.h * fhandler.h (enum dirent_states): Remove dirent_saw_cygdrive, 2006-03-01 22:37:25 +00:00
fhandler_clipboard.cc * cygheap.h (init_cygheap::manage_console_count): Declare new function. 2005-11-14 04:28:45 +00:00
fhandler_console.cc * cygheap.cc (init_cygheap::manage_console_count): Turn console control handler 2006-03-16 02:57:37 +00:00
fhandler_disk_file.cc * dir.cc (opendir): Fix indentation. 2006-03-03 20:19:26 +00:00
fhandler_dsp.cc * cygheap.h (init_cygheap::manage_console_count): Declare new function. 2005-11-14 04:28:45 +00:00
fhandler_fifo.cc Change name from commune_recv to commune_process throughout. Change name from 2005-09-28 22:56:47 +00:00
fhandler_floppy.cc whitespace cleanup to force snapshot. 2005-12-22 05:57:54 +00:00
fhandler_mailslot.cc white space 2005-08-12 02:39:13 +00:00
fhandler_mem.cc * fhandler.cc (ACCFLAGS): Remove macro. 2005-12-14 16:38:22 +00:00
fhandler_netdrive.cc * dir.cc (readdir_worker): Use slash as path separator when evaluating 2006-02-28 12:20:11 +00:00
fhandler_nodevice.cc * fhandler_nodevice.cc (fhandler_nodevice::open): Assume that errno has already 2004-03-27 18:01:04 +00:00
fhandler_proc.cc * autoload.cc (NtClose): Define. 2006-03-09 09:01:08 +00:00
fhandler_process.cc * fhandler_process.cc (format_process_stat): Use cygwin-derived start time even 2006-02-11 04:53:14 +00:00
fhandler_random.cc Revert erroneous checkin. 2005-09-28 19:22:25 +00:00
fhandler_raw.cc * fhandler.cc (ACCFLAGS): Remove macro. 2005-12-14 16:38:22 +00:00
fhandler_registry.cc * autoload.cc (NtQueryDirectoryFile): Define. 2006-01-27 21:50:42 +00:00
fhandler_serial.cc * cygheap.h (init_cygheap::manage_console_count): Declare new function. 2005-11-14 04:28:45 +00:00
fhandler_socket.cc * fhandler_socket.cc (fhandler_socket::connect): Fix formatting. 2006-02-06 17:50:23 +00:00
fhandler_tape.cc whitespace cleanup to force snapshot. 2005-12-22 05:57:54 +00:00
fhandler_termios.cc * child_info.h (CURR_CHILD_INFO_MAGIC): Regenerate. 2006-03-18 19:17:21 +00:00
fhandler_tty.cc * child_info.h (CURR_CHILD_INFO_MAGIC): Regenerate. 2006-03-18 19:17:21 +00:00
fhandler_virtual.cc * include/cygwin/version.h: Bump API minor number to 151. 2006-01-21 02:24:17 +00:00
fhandler_windows.cc Remove some more unneeded 'return;'s throughout. 2005-09-14 14:27:56 +00:00
fhandler_zero.cc Remove some more unneeded 'return;'s throughout. 2005-09-14 14:27:56 +00:00
flock.cc
fork.cc * child_info.h (CURR_CHILD_INFO_MAGIC): Regenerate. 2006-03-18 19:17:21 +00:00
gcrt0.c
gendef * cygtls.cc (_cygtls::remove): Reset initialized flag right away if we were 2006-03-13 04:26:57 +00:00
gendevices * analyze_sigfe: New script. 2006-03-01 20:20:22 +00:00
gentls_offsets * analyze_sigfe: New script. 2006-03-01 20:20:22 +00:00
glob.c * glob.c: (glob0): New local variable `limit`. Use in calls to glob1 2005-06-18 19:04:25 +00:00
gmon.c
gmon.h
grp.cc Remove some more unneeded 'return;'s throughout. 2005-09-14 14:27:56 +00:00
heap.cc * child_info.h (child_info_fork::handle_failure): Declare new function. 2006-03-13 21:10:14 +00:00
heap.h
hires.h * hires.h (hires_ms::initime_ms): Delete. 2005-12-07 22:28:49 +00:00
hookapi.cc * winsup.h (cygwin_hmodule): Declare. 2006-02-23 19:21:21 +00:00
how-autoload-works.txt white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
how-cygheap-works.txt
how-cygtls-works.txt * dcrt0.cc (cygwin_dll_init): Now initializes main_environ and cygtls. Comment 2005-06-04 02:11:50 +00:00
how-fhandlers-work.txt
how-signals-work.txt minor cleanup 2004-03-14 05:35:19 +00:00
how-spawn-works.txt
how-to-debug-cygwin.txt fix breakpoint example 2005-05-06 21:09:35 +00:00
how-vfork-works.txt minor cleanup 2004-12-05 02:30:20 +00:00
init.cc * child_info.h (CURR_CHILD_INFO_MAGIC): Regenerate. 2006-03-18 19:17:21 +00:00
ioctl.cc
ipc.cc
localtime.cc * libc: Add subdirectory. 2005-11-18 17:48:23 +00:00
lsearch.cc white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
malloc.cc * malloc.cc: Update to version 2.8.3. 2005-12-10 17:09:58 +00:00
malloc_wrapper.cc *** cygwin DLL Changes: 2005-12-29 20:46:34 +00:00
mcount.c
misc-std.sgml
miscfuncs.cc * dtable.cc (handle_to_fn): Accomodate new argument order in call to 2006-02-07 15:49:08 +00:00
mktemp.cc Add top comment 2005-05-25 03:43:58 +00:00
mkvers.sh update copyright 2004-02-04 22:40:50 +00:00
mmap.cc * Update copyrights. 2006-01-12 15:53:51 +00:00
msg.cc Replace valid memory checks with new myfault class "exception handling", almost 2005-07-03 02:40:30 +00:00
mtinfo.h * mtinfo.h (mtinfo_drive::error): Fix argument bug in debug_printf call. 2005-08-22 16:12:01 +00:00
net.cc * fhandler.h (class fhandler_socket): Add saw_reuseaddr status flag. 2006-01-29 12:23:44 +00:00
netdb.cc
newsym white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
ntdll.h * autoload.cc (NtClose): Define. 2006-03-09 09:01:08 +00:00
ntea.cc * mmap.cc (mmap64): Avoid compiler warning. 2005-05-18 17:23:17 +00:00
passwd.cc Remove some more unneeded 'return;'s throughout. 2005-09-14 14:27:56 +00:00
path.cc * include/sys/dirent.h (struct __DIR): Rename __d_unused to 2006-03-01 13:47:49 +00:00
path.h * fhandler_disk_file.cc (fhandler_disk_file::opendir): Use iscygdrive 2006-02-28 20:26:52 +00:00
path.sgml * path.sgml: Encode programming example with CDATA. 2004-12-31 01:13:28 +00:00
perprocess.h
pinfo.cc * child_info.h (CURR_CHILD_INFO_MAGIC): Regenerate. 2006-03-18 19:17:21 +00:00
pinfo.h * child_info.h (child_info_fork::handle_failure): Declare new function. 2006-03-13 21:10:14 +00:00
pipe.cc * fhandler.h (fhandler_pipe::fixup_in_child): Declare new function. 2005-12-19 04:34:13 +00:00
poll.cc * fhandler_socket.cc (fhandler_socket::recvfrom): Just return 0 (EOF) 2005-11-13 16:24:40 +00:00
posix.sgml
profil.c
profil.h
pseudo-reloc.cc
pthread.cc * pthread.cc (mangle_sem_name): Use cygheap->shared_prefix instead 2005-09-27 20:34:19 +00:00
pwdgrp.h * sync.h (muto::initforce): Delete flawed implementation. 2005-04-05 06:04:57 +00:00
registry.cc * dir.cc (readdir_worker): Minor code cleanup. 2006-01-03 17:44:26 +00:00
registry.h * dir.cc (readdir_worker): Minor code cleanup. 2006-01-03 17:44:26 +00:00
resource.cc Replace valid memory checks with new myfault class "exception handling", almost 2005-07-03 02:40:30 +00:00
rmsym
scandir.cc * fhandler_clipboard.cc (fhandler_dev_clipboard::write): Never set 2005-03-01 11:51:29 +00:00
sched.cc Change foo (void) to foo () for all c++ functions throughout. Remove all 2005-07-05 03:16:46 +00:00
sec_acl.cc * pinfo.cc (pinfo::init): Define sa_buf as PSECURITY_ATTRIBUTES and 2005-06-07 19:31:42 +00:00
sec_helper.cc * sec_helper.cc (set_cygwin_privileges): Request SE_BACKUP_NAME 2006-03-01 23:14:25 +00:00
security.cc * dtable.cc (handle_to_fn): Accomodate new argument order in call to 2006-02-07 15:49:08 +00:00
security.h Change foo (void) to foo () for all c++ functions throughout. Remove all 2005-07-05 03:16:46 +00:00
select.cc * hires.h (hires_ms::initime_ms): Delete. 2005-12-07 22:28:49 +00:00
select.h * debug.h (console_printf): Define for non-debugging condition. 2004-02-09 04:04:24 +00:00
sem.cc Replace valid memory checks with new myfault class "exception handling", almost 2005-07-03 02:40:30 +00:00
shared.cc * cygheap.cc (cygheap_init): Add GLOBAL_PRIV to hProcToken explicitely 2005-09-27 19:04:38 +00:00
shared.sgml Update Makefile to use xmlto 2004-12-27 19:03:56 +00:00
shared_info.h * include/sys/dirent.h (struct __DIR): Rename __d_unused to 2006-03-01 13:47:49 +00:00
shm.cc Replace valid memory checks with new myfault class "exception handling", almost 2005-07-03 02:40:30 +00:00
signal.cc Always zero all elements of siginfo_t throughout. 2006-02-06 18:24:11 +00:00
sigproc.cc * child_info.h (CURR_CHILD_INFO_MAGIC): Regenerate. 2006-03-18 19:17:21 +00:00
sigproc.h * cygtls.h (struct _cygtls::thread_handle): Remove/revert. 2005-09-23 15:18:22 +00:00
smallprint.c * child_info.h (fork_info): Use different method to alias variable. 2005-03-19 21:45:15 +00:00
spawn.cc * child_info.h (CURR_CHILD_INFO_MAGIC): Regenerate. 2006-03-18 19:17:21 +00:00
speclib
stackdump.sgml Update Makefile to use xmlto 2004-12-27 19:03:56 +00:00
strace.cc add copyright 2006-01-02 02:57:54 +00:00
string.h
strsep.cc
strsig.cc * Makefile.in (DLL_OFILES): Add strsig.o. 2004-02-03 21:59:27 +00:00
sync.cc Eliminate (void) cast on standalone function calls throughout. 2005-07-06 20:05:03 +00:00
sync.h * cygheap.h (cygheap_fdenum::cygheap_fdenum): Record locked state or suffer 2005-10-23 23:47:45 +00:00
syscalls.cc * child_info.h (CURR_CHILD_INFO_MAGIC): Regenerate. 2006-03-18 19:17:21 +00:00
sysconf.cc whitespace cleanup to force snapshot. 2005-12-22 05:57:54 +00:00
syslog.cc * syslog.cc: Include sys/un.h instead of sys/socket.h. 2006-01-02 13:05:57 +00:00
termios.cc * fhandler_serial.cc (fhandler_serial::tcgetattr): Just zero c_cflag here 2005-09-09 03:00:34 +00:00
textmode.c
textreadmode.c * Makefile.in (EXTRALIBS): Add libtextreadmode.a. 2004-04-06 14:22:43 +00:00
thread.cc Always zero all elements of siginfo_t throughout. 2006-02-06 18:24:11 +00:00
thread.h * thread.h: Revert patch from 2005-09-05. 2005-09-06 19:22:54 +00:00
timer.cc revert erroneous checkin 2006-02-20 02:06:37 +00:00
times.cc * times.cc (clock_getres): Use correct conversion from milliseconds to 2006-02-11 00:06:50 +00:00
tlsoffsets.h * cygtls.cc (_cygtls::remove): Reset initialized flag right away if we were 2006-03-13 04:26:57 +00:00
tty.cc Eliminate (void) cast on standalone function calls throughout. 2005-07-06 20:05:03 +00:00
tty.h copyright 2006-01-12 04:52:51 +00:00
tz_posixrules.h
uinfo.cc * dtable.cc (handle_to_fn): Accomodate new argument order in call to 2006-02-07 15:49:08 +00:00
uname.cc * uname.cc (uname): Concatenate a "-WOW64" to utsname's sysname 2006-01-13 14:00:10 +00:00
wait.cc Change pthread::cancelable_wait to just cancelable_wait, throughout. 2005-06-09 05:11:51 +00:00
winbase.h * pinfo.cc (pinfo::init): Define sa_buf as PSECURITY_ATTRIBUTES and 2005-06-07 19:31:42 +00:00
wincap.cc * cygheap.cc (init_cygheap::manage_console_count): Turn console control handler 2006-03-16 02:57:37 +00:00
wincap.h * cygheap.cc (init_cygheap::manage_console_count): Turn console control handler 2006-03-16 02:57:37 +00:00
window.cc Change process_lock to lock_process throughout. Change all calls to new 2005-10-17 23:27:00 +00:00
wininfo.h * sync.h (muto::operator int): New operator. 2005-04-05 04:31:00 +00:00
winsup.h * child_info.h (CURR_CHILD_INFO_MAGIC): Regenerate. 2006-03-18 19:17:21 +00:00
winver.rc