summaryrefslogtreecommitdiff
path: root/threadproc
Commit message (Collapse)AuthorAgeFilesLines
...
* Proposed;wrowe2007-08-261-12/+118
| | | | | | | | | | | | | | | | | | | | | | | Solve win32 inherited pipe leaks by leveraging OS2 port's solution. Mutex the pipe manipulation on WinNT+++ alone (not WinCE, nor 9x) so that we toggle the inherited state of the stdin/out/err pipes. This is only possible on NT, because in CE/9x it would involve replacing the pipe handles all over the place as there is no toggle. This CRITICAL_SECTION pipe is incredibly fast in the mainline case, and only introduces contention in the threaded server after startup (for cgi, etc). Not unlike an in-process cgid. So, leave WinCE alone for now, since it doesn't follow the stdio model, and leave Win9x alone for good, as nearly abandoned. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@569882 13f79535-47bb-0310-9956-ffa450edef68
* Make Win32 consistent with unix, in that we will inherit the defaultwrowe2007-08-231-6/+6
| | | | | | | | stdin/out/err if some of these handles are left unset, while one or two of them are set with apr_procattr_io_set() (with one or more APR_NO_PIPE's) and/or apr_procattr_child_XXX_set(). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@568818 13f79535-47bb-0310-9956-ffa450edef68
* Eliminate for WinCE the special handling of program files ending in wrowe2007-06-011-0/+4
| | | | | | | | | | | | ".bat" or ".cmd" and falls through to the general case. There is no COMSPEC on WinCE (no getenv either) and no command line shell. PR: 39869 Submitted by: Curt Arnold <carnold apache.org> Reviewed by: Davi Arnaut git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@543324 13f79535-47bb-0310-9956-ffa450edef68
* Borland specific define for LOGON32_LOGON_NETWORKwrowe2007-05-311-0/+4
| | | | | | | | | PR: 33490/attachment 18106 Submitted by: Curt Arnold <carnold apache.org> Reviewed by: Davi Arnaut <davi haxent.com.br> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@543304 13f79535-47bb-0310-9956-ffa450edef68
* Suppress warning of unused static function.wrowe2007-05-311-0/+2
| | | | | | | | PR: 39868 Submitted by: Curt Arnold <carnold apache.org> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@543279 13f79535-47bb-0310-9956-ffa450edef68
* Fix compile failure in pthread_attr_setdetachstate() logic on z/OS.trawick2007-01-291-1/+5
| | | | | | | | Submitted by: David Jones <oscaremma gmail.com> Reviewed by: trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@501150 13f79535-47bb-0310-9956-ffa450edef68
* Backout R434327, R437115, which...wrowe2006-11-221-15/+2
| | | | | | | | | | | Implement apr_threadkey_private destructors on WIN32 instead silently ignoring them. and reviewed by wrowe, brane, jerenkrantz to need a more comprehensive solution, e.g. Windows PE destructor entry points, that does -not- break svn. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@478137 13f79535-47bb-0310-9956-ffa450edef68
* * threadprox/unix/proc.c (apr_proc_create): Relax the tests to allowjorton2006-10-101-1/+1
| | | | | | | | | | executable-but-unreadable programs to be executed even if the errchk mode is active. PR: 32498 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@454787 13f79535-47bb-0310-9956-ffa450edef68
* Implement apr_threadkey_private destructors on WIN32mturk2006-08-241-2/+15
| | | | | | instead silently ignoring them. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@434327 13f79535-47bb-0310-9956-ffa450edef68
* Fix the typo.jorton2006-08-0322-22/+22
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@428317 13f79535-47bb-0310-9956-ffa450edef68
* Update license header.jorton2006-08-0322-132/+132
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@428313 13f79535-47bb-0310-9956-ffa450edef68
* Fix up Win32-private includes to bring it in line with all other platforms.jerenkrantz2006-07-124-6/+6
| | | | | | | | | | Originally titled: [patch 10/17] include path prefix win32/ Submitted by: John Mark Vandenberg Reviewed by: Will Rowe (concept), Justin Erenkrantz git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@421349 13f79535-47bb-0310-9956-ffa450edef68
* Implement apr_thread_yield on Unix in terms of pthread_yield or sched_yield.rooneg2006-06-301-1/+8
| | | | | | | | | | | | | | | | | Submitted by: Keisuke Nishida <keisuke.nishida gmail.com> Reviewed by: rooneg, Henry Jen <henryjen ztune.net> * configure.in: Look for pthread_yield and sched_yield. * include/arch/unix/apr_arch_threadproc.h: Include sched.h if it's present. * threadproc/unix/thread.c (apr_thread_yield): Actually do something in here... * CHANGES: Note change. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@418351 13f79535-47bb-0310-9956-ffa450edef68
* * threadproc/unix/procsup.crooneg2006-04-221-8/+8
| | | | | | | (apr_proc_detach): Remove tabs that were screwing up the indenting. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@396070 13f79535-47bb-0310-9956-ffa450edef68
* * threadproc/unix/signals.c (apr_signal, avoid_zombies): Use thejorton2006-04-051-2/+2
| | | | | | | | | | Darwin zombie-avoidance hack on NetBSD too. PR: 36750 Submitted by: Todd Vierling <tv pobox.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@391580 13f79535-47bb-0310-9956-ffa450edef68
* _beginthreadex() expects no bigger than a DWORD sized stack.wrowe2006-01-131-1/+1
| | | | | | | Noop in 32 bit, error in 64 bit builds. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@368551 13f79535-47bb-0310-9956-ffa450edef68
* Fix passing "" as an argument to a new program on windows.rooneg2005-12-101-1/+1
| | | | | | | | | | | | | | * threadproc/win32/proc.c (apr_proc_create): Pass empty strings into CreateProcess instead of filtering them out. * CHANGES: Note change. Submitted by: Philip Martin <philip codematters.co.uk> Reviewed by: wrowe, rooneg git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@355792 13f79535-47bb-0310-9956-ffa450edef68
* * threadproc/unix/procsup.c (apr_proc_detach): Check chdir() returnjorton2005-11-281-1/+4
| | | | | | | value (fixes gcc warning with modern glibc and -D_FORTIFY_SOURCE=2). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@349408 13f79535-47bb-0310-9956-ffa450edef68
* Don't pass NULL to execve() for the environment array,trawick2005-10-101-0/+8
| | | | | | | | | | resolving a theoretical problem with standards compliance and an actual problem with Purify. Reviewed by: Joe Orton git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@312607 13f79535-47bb-0310-9956-ffa450edef68
* * threadproc/unix/proc.c (apr_proc_create): Use _exit() not exit() tojorton2005-08-241-6/+6
| | | | | | | | | | prevent atexit-registered functions from being run in a failing child, and e.g. flushing stdio buffers. PR: 30913 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@239687 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Fix crash in apr_proc_create with non-shell type process creation wherebjh2005-07-031-1/+2
| | | | | | | | | the .exe extension is not given. Was trying to close an apr_file_t that had failed to open, causing a segfault. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@208879 13f79535-47bb-0310-9956-ffa450edef68
* * threadproc/unix/proc.c (apr_procattr_child_in_set,jorton2005-05-161-19/+25
| | | | | | | | | apr_procattr_child_out_set, apr_procattr_child_err_set): Add error checking: fixes segfaults in applications when pipe() or dup2() fail (e.g. due to ulimit settings). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@170395 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright year to 2005 and standardize on current copyright owner line.jerenkrantz2005-02-0422-22/+44
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@151412 13f79535-47bb-0310-9956-ffa450edef68
* NetWare implementation of apr_procattr_user_set() and apr_procattr_group_set()bnicholes2005-01-181-2/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@125520 13f79535-47bb-0310-9956-ffa450edef68
* Use zero length password if supplied password is NULL.mturk2005-01-171-12/+15
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@125406 13f79535-47bb-0310-9956-ffa450edef68
* Remove unused variable declarations.mturk2005-01-171-2/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@125405 13f79535-47bb-0310-9956-ffa450edef68
* Added apr_procattr_user_set and apr_procattr_group_set to allow setting ↵mturk2005-01-165-7/+235
| | | | | | uid/gid for newly created processes using apr_proc_create. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@125349 13f79535-47bb-0310-9956-ffa450edef68
* * acconfig.h: Remove file.jorton2005-01-131-1/+7
| | | | | | | | | | | | | | * configure.in: Use autoheader AH_BOTTOM macro to hard-code tail end of apr_private.h. * threadproc/unix/signals.c (apr_sigwait): Define here rather than in apr_private.h since it's only used here. * build/apr_common.m4 (APR_DECIDE): AC_DEFUN the macro, use AH_TEMPLATE to define the template for apr_private.h. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@125062 13f79535-47bb-0310-9956-ffa450edef68
* sigprocmask should be used instead pthread_sigmask on nothreaded platforms.jfclere2005-01-041-3/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@124075 13f79535-47bb-0310-9956-ffa450edef68
* Remove some unused files that appear to have been ressurected by therooneg2004-12-052-174/+0
| | | | | | | | | | | | | | CVS->SVN conversion. This was already done for the os2 version of the file in revision 65576, so we might as well do it for win32 and beos. * threadproc/win32/threadcancel.c: deleted. * threadproc/beos/threadcancel.c: deleted. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@109911 13f79535-47bb-0310-9956-ffa450edef68
* Fixing various compiler errors when compiling against the latest version of ↵bnicholes2004-11-271-1/+1
| | | | | | LibC SDK git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@106767 13f79535-47bb-0310-9956-ffa450edef68
* Remove .cvsignore files.jorton2004-11-183-14/+0
| | | | | | | Tipped-of-by: Uwe Zeisberger git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@76269 13f79535-47bb-0310-9956-ffa450edef68
* Fix enabling of signal blocking and unblocking code.jorton2004-11-171-2/+2
| | | | | | | | | | | * apr/threadproc/unix/signals.c (apr_signal_block, apr_signal_unblock): Test the correct symbol, so that these functions will actually be implemented on appropriate platforms. Submitted by: Julian Foad <julianfoad btopenworld.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@76119 13f79535-47bb-0310-9956-ffa450edef68
* Remove threadcancel.c which was somehow ressurected by the CVS->SVN conversion.bjh2004-11-141-85/+0
| | | | | | | | | Looks like CVS is dodgy as its log shows that it was modified after deletion but a checkout doesn't get it and it's in the Attic. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65576 13f79535-47bb-0310-9956-ffa450edef68
* Makes the threads to behave like on posix. If the thread is created withoutminfrin2004-09-191-14/+25
| | | | | | | | | | | | APR_DETACH expect that the thread_join will be called, so don't close the handle in advance, if the thread has already finished. PR: Obtained from: Submitted by: mturk Reviewed by: wrowe git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65335 13f79535-47bb-0310-9956-ffa450edef68
* Win32: Implement apr_procattr_child_errfn_set()and ↵stoddard2004-08-241-2/+38
| | | | | | apr_procattr_error_check_set() on Windows git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65307 13f79535-47bb-0310-9956-ffa450edef68
* apr_proc_create() on Unix: Remove unnecessary check for readtrawick2004-07-201-1/+1
| | | | | | | | | | | access to the working directory of the child process. PR: 30137 Submitted by: Jeremy Chadwick <apache jdc.parodius.com> Reviewed by: jorton, trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65285 13f79535-47bb-0310-9956-ffa450edef68
* rev back to r1.29 , removing changes to addrspace and detach set functionsclar2004-07-121-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65277 13f79535-47bb-0310-9956-ffa450edef68
* Added bit mask operation for detach and addrspace fields to make possible ↵clar2004-07-091-2/+2
| | | | | | overloading on fcts parameter. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65276 13f79535-47bb-0310-9956-ffa450edef68
* Allow shared memory to work across forks in the way it was intended.dreid2004-06-292-0/+33
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65235 13f79535-47bb-0310-9956-ffa450edef68
* Incorporate suggested changes from Martin Kraemer and Will Rowe.dreid2004-06-281-8/+9
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65223 13f79535-47bb-0310-9956-ffa450edef68
* Add command type APR_SHELLCMD_ENV for creating a processtrawick2004-06-233-5/+15
| | | | | | | | | | | | | | | which is started by the shell and which inherits the parent's environment variables. The immediate use for this is with Apache httpd's piped loggers, correcting a regression since 1.3. In general, applications starting child processes often want the child to run with the same environment variables, so this plugs a hole in the API. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65213 13f79535-47bb-0310-9956-ffa450edef68
* * threadproc/unix/thread.c (apr_threadattr_detach_set): Fix for Mac OSjorton2004-06-141-3/+5
| | | | | | | | | | | | | X: pass valid arguments to pthread_attr_setdetachstate. * include/apr_thread_proc.h: Clarify apr_threadattr_detach_{set,get} interfaces. PR: 28472 Submitted by: INOUE Seiichiro <inoue ariel-networks.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65199 13f79535-47bb-0310-9956-ffa450edef68
* Added new APR API to load child process in current or new address space ↵clar2004-06-145-3/+37
| | | | | | | | | | (NetWare ONLY). Replaced changes that added APR_PROGRAM_ADDRSPACE committed 6/11/04. Reviewed by Brad Nicholes git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65196 13f79535-47bb-0310-9956-ffa450edef68
* * threadproc/unix/thread.c (threadattr_cleanup): New function.jorton2004-06-141-2/+18
| | | | | | | | (apr_threadattr_create): Register cleanup for threadattr object, fix possible memory leak. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65195 13f79535-47bb-0310-9956-ffa450edef68
* Replaced APR_PROGRAM_ENV with new enum APR_PROGRAM_ADDRSPACE when starting a ↵clar2004-06-111-4/+3
| | | | | | child program git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65184 13f79535-47bb-0310-9956-ffa450edef68
* Add apr_threadattr_guardsize_set function, which allows changingjorton2004-06-105-0/+43
| | | | | | | | | | | | | | | | | | | the thread guard area size attribute for newly created threads. * configure.in: Check for pthread_attr_setguardsize. * include/apr_thread_proc.h (apr_threadattr_guardsize_set): Add prototype. * threadproc/unix/thread.c (apr_threadattr_guardsize_set): Add function. * threadproc/os2/thread.c, threadproc/win32/thread.c, threadproc/beos/thread.c, threadproc/netware/thread.c (apr_threadattr_guardsize_set): Add ENOTIMPL stubs. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65179 13f79535-47bb-0310-9956-ffa450edef68
* APR_ENOTIMPL is more appropriate (rather than APR_SUCCESS) formadhum2004-04-222-4/+4
| | | | | | | apr_signal_block, apr_signal_unblock (since they're not implemented) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65078 13f79535-47bb-0310-9956-ffa450edef68
* * threadproc/unix/signals.c (apr_signal_block, apr_signal_unblock):jorton2004-04-221-2/+10
| | | | | | | | Move outside #if APR_HAS_THREADS to fix non-threaded build; return ENOTIMPL for !APR_HAS_SIGACTION case. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65077 13f79535-47bb-0310-9956-ffa450edef68
* Added two new functions apr_signal_block and apr_signal_unblock tomadhum2004-04-212-0/+20
| | | | | | | | | | block/unblock only certain signals. The functions are currently enabled for Unix (beos, os2). It's a null function for win32 and netware (I really don't know if they even require such a feature) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65076 13f79535-47bb-0310-9956-ffa450edef68