summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* .Christopher Faylor2013-04-011-0/+5
|
* whitespaceChristopher Faylor2013-03-314-6/+6
|
* * child_info.h (cygheap_exec_info::sigmask): Declare new field.Christopher Faylor2013-03-3110-62/+111
| | | | | | | | | | | | | | | | | | | | | | | * cygheap.cc (init_cygheap::find_tls): Rename threadlist_ix -> ix. Only take one pass through thread list, looking for eligible threads to signal. Set a new param indicating that function has found a sigwait* mask. * cygheap.h (init_cygheap::find_tls): Reflect new parameter. * dcrt0.cc (parent_sigmask): New variable. (child_info_spawn::handle_spawn): Save parent's signal mask here. (dll_crt0_1): Restore parent's signal mask to tls sigmask as appropriate. Call sig_dispatch_pending to flush signal queue when we can finally do something with signals. * exceptions.cc (sigpacket::process): Avoid attempting to handle signals if we haven't finished initializing. Rely on the fact that find_tls will do mask checking and don't do it again. Delete ill-named 'dummy' variable. * sigproc.cc (cygheap_exec_info::alloc): Save calling thread's signal mask in new sigmask field. (wait_sig): Try to debug when WFSO fails and DEBUGGING is defined. * thread.cc (pthread::set_tls_self_pointer): Make this a true automatic method rather than inexplicably relying on a thread parameter. (pthread::thread_init_wrapper): Accommodate set_tls_self_pointer change to non-static. Initialize sigmask before setting tid or suffer signal races. * ehread.h (pthread::set_tls_self_pointer): Make non-static, delete parameter.
* whitespaceChristopher Faylor2013-03-311-1/+0
|
* * cygthread.cc (cygthread::terminate_thread): Only try to freeCorinna Vinschen2013-03-294-12/+33
| | | | | | thread stack on systems not freeing it by themselves. * wincap.h (wincaps::terminate_thread_frees_stack): New element. * wincap.cc: Implement above element throughout.
* * pinfo.h (pinfo::status_exit): Rename from former static function in pinfo.cc.Christopher Faylor2013-03-294-6/+25
| | | | | | | (pinfo::operator == (char *)): Remove unused operator. * pinfo.cc (pinfo::status_exit): Move this function info pinfo class. Use progname from the pinfo rather than myself. Be defensive when inspecting procinfo.
* * sigproc.cc (wait_sig): Avoid uninitialized use of nb when retrying.Christopher Faylor2013-03-292-17/+11
| | | | Consolidate two error messages into one.
* * sigproc.cc (pending_signals::retry): Declare new element.Christopher Faylor2013-03-292-41/+32
| | | | | | | | | (pending_signals::pending): Force an additional loop through wait_sig by setting retry whenever this function is called. (sig_send): Reorganize to wait for SIGHOLD at bottom. Always add signal to pending queue and work on whole queue rather than just the one signal. Loop when sigq.retry is set. Fix long-broken check for SIGCHLD after queued signals.
* * exceptions.cc (exception::handle): Generalize comment.Christopher Faylor2013-03-282-1/+5
|
* * faq-what.xml (faq.what.supported): Mention Windows 8 and Server 2012.Corinna Vinschen2013-03-272-3/+9
| | | | Change sentence on native 64 bit version.
* test checkinChristopher Faylor2013-03-191-1/+1
|
* add newsChristopher Faylor2013-03-091-0/+4
|
* * cygtls.h (_cygtls::signal_debugger): Change argument type.Christopher Faylor2013-03-093-24/+42
| | | | | | | | | (_cygtls::copy_context): Delete declaration. * exceptions.cc (exception::handle): Don't call copy_context() here. Move signal_handler call earlier and always call it. (_cygtls::copy_context): Delete definition. (_cygtls::signal_debugger): Move copy_context logic here. Suspend thread receiving signal before gathering context information.
* * spawn.cc (child_info_spawn::worker): Save and restore my_wr_proc_pipe aroundChristopher Faylor2013-03-092-5/+20
| | | | | non-execing operations to avoid handle leak seen in http://cygwin.com/ml/cygwin/2013-03/msg00152.html .
* * include/sys/un.h (UNIX_PATH_MAX): Rename from UNIX_PATH_LEN toCorinna Vinschen2013-03-073-12/+48
| | | | | | | | follow Linux. * fhandler_socket.cc: Change UNIX_PATH_LEN to UNIX_PATH_MAX throughout. (fhandler_socket::recv_internal): Don't return prematurely in case of successful return. For AF_LOCAL sockets, overwrite returned AF_INET name with AF_LOCAL name.
* * fhandler_socket.cc (fhandler_socket::bind): Fix check for AF_LOCALCorinna Vinschen2013-03-072-15/+37
| | | | | | | | filename length to allow non-NUL terminated strings within namelen bytes. Copy over sun_path to local array sun_path to have a NUL-terminated string for subsequent function calls. Move path_conv check before OS bind call to not bind the socket before being sure the file doesn't exist. Add and fix comments.
* * mount.cc (fs_names): Add trailing NULL element to avoid potentialCorinna Vinschen2013-03-062-1/+7
| | | | SEGV in format_proc_filesystems.
* * faq-using.xml: Fix expression and uppercase Samba.Corinna Vinschen2013-03-062-2/+6
|
* Remove now-inappropriate comment.Christopher Faylor2013-03-011-2/+0
|
* fix latest changelog descriptionChristopher Faylor2013-03-011-1/+1
|
* * exceptions.cc (exception::handle): Eliminate buggy recursed value and justChristopher Faylor2013-03-012-3/+8
| | | | check if we're exiting.
* * include/pthread.h (pthread_atfork): Add missing declaration.Corinna Vinschen2013-02-262-0/+6
|
* * include/error.h (error_message_count): Declare as dllimport.Yaakov Selkowitz2013-02-212-0/+12
| | | | | (error_one_per_line): Ditto. (error_print_progname): Ditto.
* * Makefile.in (CYGWIN_LDFLAGS): Replace -static-lib* with -static.Yaakov Selkowitz2013-02-212-3/+9
| | | | | (MINGW_LDFLAGS): Ditto. (ZLIB): Simplify accordingly.
* * pathnames.sgml: Remove stray '@'.Christopher Faylor2013-02-132-1/+5
|
* * pathnames.sgml: Clarify '@' processing.Christopher Faylor2013-02-132-5/+9
|
* * child_info.h (CURR_CHILD_INFO_MAGIC): Update.Corinna Vinschen2013-02-082-4/+9
| | | | (class child_info_fork): Drop extraneous semicolon.
* * fhandler_socket.cc (fhandler_socket::bind): Fix error code forCorinna Vinschen2013-02-042-1/+6
| | | | empty filename.
* * fhandler_socket.cc (fhandler_socket::bind): Fix length check ofCorinna Vinschen2013-02-042-4/+12
| | | | | AF_LOCAL filename so it never accesses memory beyond namelen. Also make sure filename is NUL-terminated.
* * DevNotes: Add entry cgf-000022.Christopher Faylor2013-01-319-68/+100
| | | | | | | | | | | | | | | | | | | | | | * cygtls.h (_cygtls::func): Define as a sa_sigaction style function. * exceptions.cc (sig_handle_tty_stop): Ditto. (_cygtls::interrupt_setup): Fix coercion to accommodate 'func' change. (ctrl_c_handler): Use tty kill_pgrp to send a signal. (sigpacket::process): Don't process sigflush here. (_cygtls::call_signal_handler): Reorganize to avoid a race. Always call sa_sigaction style function. * fhandler_termios.cc (is_flush_sig): Define new function. (tty_min::kill_pgrp): Handle tty flush when signal detected. (fhandler_termios::bg_check): Be slightly more paranoid about checking for valid tty. (fhandler_termios::sigflush): Don't flush unless tty owner. * fhandler_tty.cc (fhandler_pty_slave::ioctl): Use tty kill_pgrp to send signal. (fhandler_pty_master::ioctl): Ditto. * signal.cc (killsys): Delete definition. * sigproc.h (killsys): Delete declaration. * include/cygwin/signal.h (siginfo_t): Simplify union/struct nesting slightly. Implement mechanism to allow cygwin data passing.
* * faq-programming.xml: Remove reference to "make check".Christopher Faylor2013-01-232-3/+6
|
* * miscfuncs.cc (__import_address): Check if malloc field points directly atChristopher Faylor2013-01-232-1/+7
| | | | 'malloc'.
* * miscfuncs.cc (__import_address): On second thought, the chance that thisChristopher Faylor2013-01-232-1/+6
| | | | pointer could be NULL is very low so don't bother checking for it.
* * exceptions.cc (exception::handle): Make attempt to recursively dump stackChristopher Faylor2013-01-232-1/+6
| | | | fatal.
* * miscfuncs.cc (__import_address): Avoid NULL explicitly.Christopher Faylor2013-01-232-1/+5
|
* * miscfuncs.cc (__import_address): Avoid treating random instructions as importChristopher Faylor2013-01-233-2/+12
| | | | | jump. * malloc_wrapper.cc (malloc_init): Remove comment about 64-bit.
* * dcrt0.cc (dll_crt0_1): Comment assumption.Christopher Faylor2013-01-213-0/+12
| | | | | * exceptions.cc (sigpacket::setup_handler): Avoid sending signals during fork processing.
* * dcrt0.cc (dll_crt0_1): Flag that we are working "incyg". Handle any signalsChristopher Faylor2013-01-212-1/+18
| | | | | (presumably exiting signals) which may have come in while we are in the process of setting up.
* Update copyrightsChristopher Faylor2013-01-2118-25/+27
|
* Update copyrightsChristopher Faylor2013-01-213-6/+5
|
* * update-copyright: Recognize configure.ac scripts too.Christopher Faylor2013-01-212-2/+6
|
* Use same fix to silence newer gcc as in 64 bit branchCorinna Vinschen2013-01-211-1/+1
|
* * cygerrno.h (__reg3): Define.Christopher Faylor2013-01-213-4/+9
| | | | * cygmalloc.h (__reg3): Ditto.
* * cygerrno.h: Conditionally define __regN for cygserver.Christopher Faylor2013-01-212-0/+14
|
* * malloc_wrapper.cc (malloc_init): Re-add inadvertently dropped comment whichChristopher Faylor2013-01-212-0/+8
| | | | explains what's going on with the use_internal calculation.
* Throughout, update copyrights to reflect dates which correspond to main-branchChristopher Faylor2013-01-21158-215/+233
| | | | checkins. Regularize copyright format.
* Throughout, change __attribute__ ((regparm (N))) to just __regN. Throughout,Christopher Faylor2013-01-2160-513/+512
| | | | | | | | | | | | | | | | | | | (mainly in fhandler*) start fixing gcc 4.7.2 mismatch between regparm definitions and declarations. * gendef: Define some functions to take @ declaration to accommodate _regN defines which use __stdcall. * gentls_offsets: Define __regN macros as empty. * autoload.cc (wsock_init): Remove unneeded regparm attribute. * winsup.h (__reg1): Define. (__reg2): Define. (__reg3): Define. * advapi32.cc (DuplicateTokenEx): Coerce some initializers to avoid warnings from gcc 4.7.2. * exceptions.cc (status_info): Declare struct to use NTSTATUS. (cygwin_exception::dump_exception): Coerce e->ExceptionCode to NTSTATUS. * fhandler_clipboard.cc (cygnativeformat): Redefine as UINT to avoid gcc 4.7.2 warnings. (fhandler_dev_clipboard::read): Ditto.
* * update-copyright (update_maybe): Accommodate perl-style copyright comments.Christopher Faylor2013-01-212-2/+7
|
* * update-copyright: Silently skip nonexistent files. Display filename onChristopher Faylor2013-01-212-8/+22
| | | | update. Don't update non-Red Hat copyrights.
* * update-copyright: Update standard copyright information based on cvs log andChristopher Faylor2013-01-202-0/+85
| | | | current sandbox status.