summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixNotfy.c
Commit message (Collapse)AuthorAgeFilesLines
* (cherry-pick): Fix [d3071887dbc7aeac]: Fix SEGV in Tcl_FinalizeNotifier(). ↵jan.nijtmans2016-03-211-0/+2
| | | | Thanks to hirofumi for both the bug-report and the fix
* Eliminate unnessessary end-of-line spacing. No functional change.jan.nijtmans2015-10-041-1/+1
|
* Eliminate a few gcc compiler warnings, when using -Wwrite-strings (tested ↵jan.nijtmans2015-10-011-1/+1
| | | | with the brand-new gcc 5.2.0)
* Fix [5d170b5ca5e12743006d737c79f959f3efabc644|5d170b5ca5]: checkin ↵jan.nijtmans2015-09-241-137/+228
|\ | | | | | | 9f8b7bea5344f1b0 broke netbsd's thread notifier
| * merge trunkbug_5d170b5ca5jan.nijtmans2015-09-241-2/+2
| |\
| | * merge-mark (almost, just a few cosmetic changes)jan.nijtmans2015-09-241-2/+2
| | |\ | |_|/ |/| |
* | | Clean-up tclUnixNotfy.c, restructure it the same as "trunk" version. No ↵jan.nijtmans2015-09-241-179/+207
| | | | | | | | | | | | functional changes. This will make upcoming merging work easier.
| * | Fix for [5d170b5ca5] now available for widespread testing (incl. HPUX and OSX)jan.nijtmans2015-09-071-3/+3
| | |
| * | Merge trunk. jan.nijtmans2015-09-051-0/+6
| |\ \ | | |/ | | | "paranoia" patch for the notifier, making sure that thread local data from invalid threads are never accessed by the forked main thread.
| * | In StartNotifierThread() don't lock mutex if thread is already started. jan.nijtmans2015-09-031-50/+22
| | | | | | | | | | | | Fix panic message if thread cannot be started. Remove asserts used for debugging.
| * | Fix the Cygwin notifier, doing the initialization of the thread-local ↵jan.nijtmans2015-09-021-41/+33
| | | | | | | | | | | | variables exactly the same as the Unix notifier.
| * | Merge trunk. jan.nijtmans2015-09-021-2/+2
| |\ \ | | |/ | | | Gustaf's latest and greatest fix.
| * | Merge trunk. jan.nijtmans2015-08-311-1/+12
| |\ \ | | |/ | | | Add Gustaf's latest fix for unit-tests.
| * | remove superfluous fprintf to stderr.jan.nijtmans2015-08-171-1/+0
| | |
| * | Merge trunk.jan.nijtmans2015-08-171-48/+45
| |\ \ | | |/ | | | More notifier code cleanup.
| * | Merge trunk.jan.nijtmans2015-08-171-203/+199
| |\ \ | | |/ | | | Gustaf's latest Unix Notifier improvements, now fixed to work with Cygwin and single-threaded as well.
| * | Gustaf Neumann's experimental Unix notifier improvements.jan.nijtmans2015-08-061-4/+120
| |/
| * Fix bug [57945b574a6df0332efc4ac96b066f7c347b28f7|57945b574a]: lock in ↵jan.nijtmans2015-07-231-1/+9
| |\ | |/ |/| | | forking process under heavy multithreading. Thanks to Joe Mistachkin for the implementation of the fix, and Gustaf Neumann for the original report and testing the fix.
* | Fix bug [57945b574a6df0332efc4ac96b066f7c347b28f7|57945b574a]: lock in ↵jan.nijtmans2015-07-231-4/+12
|\ \ | | | | | | | | | forking process under heavy multithreading. Thanks to Joe Mistachkin for the implementation of the fix, and Gustaf Neumann for the original report and testing the fix.
| * | Rename the new API to TclMutexUnlockAndFinalize as it is not platform-specific.Joe Mistachkin2015-06-171-1/+1
| | |
| * | Change Tcl_MutexUnlockAndFinalize() to internal function ↵jan.nijtmans2015-06-161-1/+1
| | | | | | | | | | | | TclpMutexUnlockAndFinalize(). This does not require a TIP, and still should fix the reported bug.
| * | Fix typo in previous check-in.experimentalJoe Mistachkin2015-05-271-4/+4
| | |
| * | Make sure the master and mutex locks are in a well-known state across the ↵Joe Mistachkin2015-05-271-0/+6
| | | | | | | | | | | | fork() call.
| * | Additional mutex locking/unlocking during fork() to keep things synchronized.Joe Mistachkin2015-05-211-0/+2
| | |
| * | Add new public Tcl C API to allow a mutex to be unlocked and then finalized ↵Joe Mistachkin2015-04-091-1/+1
| |/ | | | | | | atomically. Candidate fix for bug [57945b574a].
| * [e6477e1b0f] Plug memleak in AtForkChild() detected in iocmd-11.4.dgp2014-07-211-2/+2
| |
| * Workaround for [414d10346b]: tcl 8.5.15/8.6.1(threaded build) hangs in exec ↵jan.nijtmans2013-10-291-3/+3
| |\ | |/ |/| | | on HP-UX
* | Workaround for [414d10346b]: tcl 8.5.15/8.6.1(threaded build) hangs in exec ↵jan.nijtmans2013-10-291-3/+3
| | | | | | | | on HP-UX
| * Fix for [d4e464ae48]: tcl 8.5.15/8.6.1 breaks python make check on darwinjan.nijtmans2013-10-071-4/+4
| |\ | |/ |/|
* | First attempt to fix bug [d4e464ae48]: tcl 8.5.15/8.61 breaks python make ↵bug_d4e464ae48jan.nijtmans2013-10-061-4/+4
| | | | | | | | check on darwin
| * Tcl_InitNotifier: Bug [a0bc856dcd]. Start notifier thread again if we were ↵jan.nijtmans2013-08-011-1/+112
| |\ | |/ |/| | | forked, to solve Rivet bug 55153
* | Make sure that the notifierMutex and notifierCV in a forked child cannot ↵jan.nijtmans2013-07-251-0/+2
| | | | | | | | block anything, even though the initialization of the Notifier Thread in the parent is not finished yet.
* | Use pthread_atfork() when available.jan.nijtmans2013-07-221-1/+89
| |
* | Fix bug which hangs iocmd.tf-32.1jan.nijtmans2013-07-221-1/+1
| |
* | Rebase to core-8-5-branchjan.nijtmans2013-07-211-3/+24
|\ \ | | | | | | Add "testfork" test command to be usable in testcase.
| * | Start notifier thread again if we were forked, to solve Rivet bug 55153 - ↵oehhar2013-07-171-0/+21
| |/ | | | | | | RFE [a0bc856dcd]
* | Backport of 2008-12-12 8.6 commit: Fix missing CLOEXEC on internal pipes ↵ferrieux2012-09-071-0/+6
| | | | | | | | [2417695]
| * Fix compiler warning when compiling Cygwin port with -Wwrite-stringsjan.nijtmans2013-07-031-6/+6
| |
| * Minor changes to improve style (C89 declarations, consistent indentation,dkf2012-08-071-79/+96
| | | | | | | | clarification of #endifs, reduction of unnecessary casts, use of array syntax for reading array elements, etc.)
| *-. merge 8.5dgp2012-07-101-2/+2
| |\ \ | |_|/ |/| |
* | | [Bug 3541646] Don't panic on triggerPipe overrunjan.nijtmans2012-07-101-5/+5
| |/ |/|
| * [Bug 3508771]: Cygwin notifier for handling win32 eventsjan.nijtmans2012-06-231-2/+145
| |\ | |/ |/|
* | [Bug 3508771]: Cygwin notifier for handling win32 eventsjan.nijtmans2012-06-231-1/+144
|\ \
| * \ [Bug 3508771]: Cygwin notifier for handling win32 eventsjan.nijtmans2012-06-231-1/+144
| |\ \
| | * \ first working version of Cygwin notifierbug_3508771jan.nijtmans2012-06-221-6/+28
| | |\ \ | | |/ / | |/| |
| | * | first attempt at Cygwin notifier adaptationjan.nijtmans2012-06-131-0/+119
| |/ /
| | * Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-3/+3
| | | | | | | | | rest of Tcl source code. No ABI change. API change *should* be harmless.
| | * fix broken builddgp2011-03-101-1/+1
| | |
| | * MINOR: Formatting fixes, mainly to comments, so code better fits the style indkf2011-03-101-63/+72
| | | | | | | | | the Engineering Manual.
| | * Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
| | |\ | |_|/ |/| | cause more harm than good. Purged them (except in zlib files).