aboutsummaryrefslogtreecommitdiff
path: root/threadproc/unix
Commit message (Collapse)AuthorAge
...
* Fix compile failure in pthread_attr_setdetachstate() logic on z/OS.Jeff Trawick2007-01-29
| | | | | | | | Submitted by: David Jones <oscaremma gmail.com> Reviewed by: trawick git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@501150 13f79535-47bb-0310-9956-ffa450edef68
* * threadprox/unix/proc.c (apr_proc_create): Relax the tests to allowJoe Orton2006-10-10
| | | | | | | | | | executable-but-unreadable programs to be executed even if the errchk mode is active. PR: 32498 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@454787 13f79535-47bb-0310-9956-ffa450edef68
* Fix the typo.Joe Orton2006-08-03
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428317 13f79535-47bb-0310-9956-ffa450edef68
* Update license header.Joe Orton2006-08-03
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428313 13f79535-47bb-0310-9956-ffa450edef68
* Implement apr_thread_yield on Unix in terms of pthread_yield or sched_yield.Garrett Rooney2006-06-30
| | | | | | | | | | | | | | | | | 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: https://svn.apache.org/repos/asf/apr/apr/trunk@418351 13f79535-47bb-0310-9956-ffa450edef68
* * threadproc/unix/procsup.cGarrett Rooney2006-04-22
| | | | | | | (apr_proc_detach): Remove tabs that were screwing up the indenting. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@396070 13f79535-47bb-0310-9956-ffa450edef68
* * threadproc/unix/signals.c (apr_signal, avoid_zombies): Use theJoe Orton2006-04-05
| | | | | | | | | | Darwin zombie-avoidance hack on NetBSD too. PR: 36750 Submitted by: Todd Vierling <tv pobox.com> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@391580 13f79535-47bb-0310-9956-ffa450edef68
* * threadproc/unix/procsup.c (apr_proc_detach): Check chdir() returnJoe Orton2005-11-28
| | | | | | | value (fixes gcc warning with modern glibc and -D_FORTIFY_SOURCE=2). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@349408 13f79535-47bb-0310-9956-ffa450edef68
* Don't pass NULL to execve() for the environment array,Jeff Trawick2005-10-10
| | | | | | | | | | resolving a theoretical problem with standards compliance and an actual problem with Purify. Reviewed by: Joe Orton git-svn-id: https://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() toJoe Orton2005-08-24
| | | | | | | | | | prevent atexit-registered functions from being run in a failing child, and e.g. flushing stdio buffers. PR: 30913 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@239687 13f79535-47bb-0310-9956-ffa450edef68
* * threadproc/unix/proc.c (apr_procattr_child_in_set,Joe Orton2005-05-16
| | | | | | | | | 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: https://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.Justin Erenkrantz2005-02-04
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@151412 13f79535-47bb-0310-9956-ffa450edef68
* Remove unused variable declarations.Mladen Turk2005-01-17
| | | | git-svn-id: https://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 ↵Mladen Turk2005-01-16
| | | | | | uid/gid for newly created processes using apr_proc_create. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@125349 13f79535-47bb-0310-9956-ffa450edef68
* * acconfig.h: Remove file.Joe Orton2005-01-13
| | | | | | | | | | | | | | * 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: https://svn.apache.org/repos/asf/apr/apr/trunk@125062 13f79535-47bb-0310-9956-ffa450edef68
* sigprocmask should be used instead pthread_sigmask on nothreaded platforms.Jean-Frederic Clere2005-01-04
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@124075 13f79535-47bb-0310-9956-ffa450edef68
* Remove .cvsignore files.Joe Orton2004-11-18
| | | | | | | Tipped-of-by: Uwe Zeisberger git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@76269 13f79535-47bb-0310-9956-ffa450edef68
* Fix enabling of signal blocking and unblocking code.Joe Orton2004-11-17
| | | | | | | | | | | * 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: https://svn.apache.org/repos/asf/apr/apr/trunk@76119 13f79535-47bb-0310-9956-ffa450edef68
* apr_proc_create() on Unix: Remove unnecessary check for readJeff Trawick2004-07-20
| | | | | | | | | | | 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: https://svn.apache.org/repos/asf/apr/apr/trunk@65285 13f79535-47bb-0310-9956-ffa450edef68
* Add command type APR_SHELLCMD_ENV for creating a processJeff Trawick2004-06-23
| | | | | | | | | | | | | | | 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: https://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 OSJoe Orton2004-06-14
| | | | | | | | | | | | | 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: https://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 ↵Jean-Jacques Clar2004-06-14
| | | | | | | | | | (NetWare ONLY). Replaced changes that added APR_PROGRAM_ADDRSPACE committed 6/11/04. Reviewed by Brad Nicholes git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65196 13f79535-47bb-0310-9956-ffa450edef68
* * threadproc/unix/thread.c (threadattr_cleanup): New function.Joe Orton2004-06-14
| | | | | | | | (apr_threadattr_create): Register cleanup for threadattr object, fix possible memory leak. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65195 13f79535-47bb-0310-9956-ffa450edef68
* Add apr_threadattr_guardsize_set function, which allows changingJoe Orton2004-06-10
| | | | | | | | | | | | | | | | | | | 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: https://svn.apache.org/repos/asf/apr/apr/trunk@65179 13f79535-47bb-0310-9956-ffa450edef68
* * threadproc/unix/signals.c (apr_signal_block, apr_signal_unblock):Joe Orton2004-04-22
| | | | | | | | Move outside #if APR_HAS_THREADS to fix non-threaded build; return ENOTIMPL for !APR_HAS_SIGACTION case. git-svn-id: https://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 toMadhusudan Mathihalli2004-04-21
| | | | | | | block/unblock only certain signals. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65071 13f79535-47bb-0310-9956-ffa450edef68
* Add apr_threadattr_stacksize_set() for overriding the defaultJeff Trawick2004-03-01
| | | | | | | | | stack size for threads created by apr_thread_create(). This is currently a not-implemented stub for BeOS. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64934 13f79535-47bb-0310-9956-ffa450edef68
* Relicense APR under Apache License, Version 2.0Justin Erenkrantz2004-02-13
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64904 13f79535-47bb-0310-9956-ffa450edef68
* First whack at switching to a single top-level make. This adds a dependencyGreg Stein2004-02-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | upon Python at packaging time, but not at end-user config/build time. As far as I can tell, the build continues to function properly. (out-of-dir config/make not tested, and apr-iconv prolly needs some work) The buildconf scripts now generate a build-outputs.mk file which is included by the root's Makefile (via the build/gen-build.py script). bulid-outputs.mk specifies all of the various files present in the distribution. The top-level Makefiles were simplified to use an $(OBJECTS) symbol rather than 'find'ing them. Similarly, a $(HEADERS) symbol is used for the exports. The corresponding delete-* targets were eliminated since we have a precise set of inputs. The subdirs' Makefiles were removed since they are no longer called/used. The apr-util/uri Makefile was responsible for compiling a C program to generate the uri_delims.h file. That process was replaced by a Python script to generate the header (called by buildconf). The .c and .dsp were left for the Windows build to continue, but that should be revamped. build/apr_rules.mk was revamped somewhat to avoid recursion, but a lot of cleanup is still needed. Much of the recursive/local/x- logic is no longer needed and can be elimianated. rules.mk was created for inclusion by N makefiles, but that isn't really true any more, so it could probably be tossed (caveat: test/Makefile). Saved for a phase 2. Some additional work was added to properly clean up files in */build/, rather than relying on a makefile in there. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64891 13f79535-47bb-0310-9956-ffa450edef68
* * threadproc/unix/threadpriv.c (apr_threadkey_private_delete):Joe Orton2003-12-10
| | | | | | | | | Define function regardless of HAVE_PTHREAD_KEY_DELETE. PR: 23837 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64833 13f79535-47bb-0310-9956-ffa450edef68
* Get rid of tabs.Ben Laurie2003-11-06
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64733 13f79535-47bb-0310-9956-ffa450edef68
* Endianness and APR types for random.Ben Laurie2003-11-05
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64728 13f79535-47bb-0310-9956-ffa450edef68
* Really fix the build again.Joe Orton2003-11-05
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64722 13f79535-47bb-0310-9956-ffa450edef68
* Make sure randomness is different after a fork.Ben Laurie2003-11-03
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64716 13f79535-47bb-0310-9956-ffa450edef68
* * include/arch/unix/apr_arch_threadproc.h: Store a pthread_attr_tJoe Orton2003-09-29
| | | | | | | | | | | | structure in apr_threadattr_t, rather than a pointer to one. * threadproc/unix/thread.c (apr_threadattr_create): Use a single palloc call, omit ENOMEM handling. (apr_threadattr_detach_set, apr_threadattr_detach_get, apr_thread_create): Adjust use of ->attr appropriately. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64663 13f79535-47bb-0310-9956-ffa450edef68
* axe these deprecated functions:Jeff Trawick2003-09-03
| | | | | | | | | | | | | | | | apr_allocator_get_mutex apr_allocator_get_owner apr_allocator_set_max_free apr_allocator_set_mutex apr_allocator_set_owner apr_pool_get_abort apr_pool_get_parent apr_pool_set_abort apr_pool_sub_make apr_signal_get_description git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64606 13f79535-47bb-0310-9956-ffa450edef68
* Fix previous commit: HAVE_DECL_* is always defined, to 0 or 1.Joe Orton2003-07-14
| | | | | | | Submitted by: Max Bowsher <maxb@ukf.net> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64569 13f79535-47bb-0310-9956-ffa450edef68
* Pick up the result of the AC_DECL_SYS_SIGLIST macro correctly withJoe Orton2003-07-07
| | | | | | | recent versions of autoconf. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64562 13f79535-47bb-0310-9956-ffa450edef68
* For apr_proc_detach(APR_PROC_DETACH_FOREGROUND), don't treatJeff Trawick2003-06-02
| | | | | | | | | | a setsid() failure as fatal, as the usual cause is that the caller is already a process group leader. PR: 18519 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64524 13f79535-47bb-0310-9956-ffa450edef68
* (apr_proc_wait): Handle interrupted waitpid(2) calls by callingThom May2003-05-08
| | | | | | | | | | | it repeatedly until it succeeds or fails with errno other than EINTR. This hides this UNIX-specific behavior from APR clients. Submitted by: Eric Gillespie <epg@pretzelnet.org> Reviewed by: Thom May git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64501 13f79535-47bb-0310-9956-ffa450edef68
* apr_proc_create() on Unix: Make the APR_SHELLCMD mode workJeff Trawick2003-04-21
| | | | | | | | | | | | | | when there is more than one program argument passed in. It worked before (and still does) if the app somehow knows to pass in a single arg which is a string containing the program name and all args, such as when calling system(). Now it works if the app passes the program arguments normally, such as when using other modes of apr_proc_create(). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64490 13f79535-47bb-0310-9956-ffa450edef68
* add apr_procattr_error_check_set() for telling apr_proc_create() toJeff Trawick2003-02-07
| | | | | | | | try to anticipate any errors that might occur after fork() (no-op everywhere but Unix) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64341 13f79535-47bb-0310-9956-ffa450edef68
* Allow apr_proc_create() to call an app-provided error reportingJeff Trawick2003-02-06
| | | | | | | | | | function when apr_proc_create() fails in the new child process after fork(). The app-provided error reporting function will only be called on platforms where apr_proc_create() first calls fork() to create the new process. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64330 13f79535-47bb-0310-9956-ffa450edef68
* Fix a bug in apr_proc_create() that could cause a new child processJeff Trawick2003-02-04
| | | | | | | to run the parent's code if setrlimit() fails. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64328 13f79535-47bb-0310-9956-ffa450edef68
* Namespace protection for include/arch/ header filesThom May2003-01-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | aix/dso.h -> -> aix/apr_arch_dso.h beos/dso.h -> beos/apr_arch_dso.h beos/proc_mutex.h -> beos/apr_arch_proc_mutex.h beos/thread_cond.h -> beos/apr_arch_thread_cond.h beos/thread_mutex.h -> beos/apr_arch_thread_mutex.h beos/threadproc.h -> beos/apr_arch_threadproc.h beos/thread_rwlock.h -> beos/apr_arch_thread_rwlock.h netware/dso.h -> -> netware/apr_arch_dso.h netware/fileio.h -> -> netware/apr_arch_fileio.h netware/global_mutex.h -> netware/apr_arch_global_mutex.h netware/internal_time.h -> netware/apr_arch_internal_time.h netware/networkio.h -> netware/apr_arch_networkio.h netware/pre_nw.h -> netware/apr_arch_pre_nw.h netware/proc_mutex.h -> netware/apr_arch_proc_mutex.h netware/thread_cond.h -> netware/apr_arch_thread_cond.h netware/thread_mutex.h -> netware/apr_arch_thread_mutex.h netware/threadproc.h -> netware/apr_arch_threadproc.h netware/thread_rwlock.h -> netware/apr_arch_thread_rwlock.h os2/dso.h -> os2/apr_arch_dso.h os2/fileio.h -> os2/apr_arch_fileio.h os2/networkio.h -> os2/apr_arch_networkio.h os2/os2calls.h -> os2/apr_arch_os2calls.h os2/proc_mutex.h -> os2/apr_arch_proc_mutex.h os2/thread_cond.h -> os2/apr_arch_thread_cond.h os2/thread_mutex.h -> os2/apr_arch_thread_mutex.h os2/threadproc.h -> os2/apr_arch_threadproc.h os2/thread_rwlock.h -> os2/apr_arch_thread_rwlock.h os390/dso.h -> os390/apr_arch_dso.h unix/dso.h -> unix/apr_arch_dso.h unix/fileio.h -> unix/apr_arch_fileio.h unix/global_mutex.h -> unix/apr_arch_global_mutex.h unix/inherit.h -> unix/apr_arch_inherit.h unix/internal_time.h -> unix/apr_arch_internal_time.h unix/misc.h -> unix/apr_arch_misc.h unix/networkio.h -> unix/apr_arch_networkio.h unix/proc_mutex.h -> unix/apr_arch_proc_mutex.h unix/shm.h -> unix/apr_arch_shm.h unix/thread_cond.h -> unix/apr_arch_thread_cond.h unix/thread_mutex.h -> unix/apr_arch_thread_mutex.h unix/threadproc.h -> unix/apr_arch_threadproc.h unix/thread_rwlock.h -> unix/apr_arch_thread_rwlock.h win32/atime.h -> win32/apr_arch_atime.h win32/dso.h -> win32/apr_arch_dso.h win32/fileio.h -> win32/apr_arch_fileio.h win32/inherit.h -> win32/apr_arch_inherit.h win32/misc.h -> win32/apr_arch_misc.h win32/networkio.h -> win32/apr_arch_networkio.h win32/proc_mutex.h -> win32/apr_arch_proc_mutex.h win32/thread_cond.h -> win32/apr_arch_thread_cond.h win32/thread_mutex.h -> win32/apr_arch_thread_mutex.h win32/threadproc.h -> win32/apr_arch_threadproc.h win32/thread_rwlock.h -> win32/apr_arch_thread_rwlock.h win32/utf8.h -> win32/apr_arch_utf8.h git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64271 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright notices to 2003.Thom May2003-01-01
| | | | | | | No functional changes git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64251 13f79535-47bb-0310-9956-ffa450edef68
* In apr_signal_thread() remove synchronous signals from the maskJeff Trawick2002-08-08
| | | | | | | | | | | | | | | | passed to sigwait(). It is never valid for them to be there. Some platforms silently ignore them, some return EINVAL, some don't process it as desired. One problem was found with an old Apache 2.0.30 build on AIX. sig_coredump() wasn't getting called when a plug-in generated SIGABRT. Removing SIGABRT from the signal mask passed to sigwait() by the main worker thread fixed the problem. After reviewing sigwait() documentation it was clear that none of the synchronous signals should be in the mask passed to sigwait(). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63802 13f79535-47bb-0310-9956-ffa450edef68
* * httpd-2.0/srclib/apr/threadproc/unix/signals.cKarl Fogel2002-07-23
| | | | | | | (store_desc): Make the backslash quote a newline, not a space. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63725 13f79535-47bb-0310-9956-ffa450edef68
* The old macro was blowing up on some platforms that weren't using gcc.Ryan Bloom2002-07-23
| | | | | | | | Specifically, True64 with the cc compiler. This resolves that problem by using a cleaner macro. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63724 13f79535-47bb-0310-9956-ffa450edef68
* added support for changing the limit on file descriptors per processBrian Pane2002-07-09
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63591 13f79535-47bb-0310-9956-ffa450edef68