| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
".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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
instead silently ignoring them.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@434327 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@428317 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@428313 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
(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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@151412 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@125520 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@125406 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@125405 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@124075 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
LibC SDK
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@106767 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
Tipped-of-by: Uwe Zeisberger
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@76269 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65277 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
overloading on fcts parameter.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65276 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65235 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65223 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
(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
|
|
|
|
|
|
|
|
| |
(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
|
|
|
|
|
|
| |
child program
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65184 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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_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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|