summaryrefslogtreecommitdiff
path: root/threadproc
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Added two new functions apr_signal_block and apr_signal_unblock tomadhum2004-04-211-0/+46
| | | | | | | block/unblock only certain signals. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65071 13f79535-47bb-0310-9956-ffa450edef68
* Add apr_threadattr_stacksize_set() for overriding the defaulttrawick2004-03-015-4/+53
| | | | | | | | | stack size for threads created by apr_thread_create(). This is currently a not-implemented stub for BeOS. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64934 13f79535-47bb-0310-9956-ffa450edef68
* Relicense APR under Apache License, Version 2.0jerenkrantz2004-02-1322-1078/+220
| | | | git-svn-id: http://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 dependencygstein2004-02-053-61/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: http://svn.apache.org/repos/asf/apr/apr/trunk@64891 13f79535-47bb-0310-9956-ffa450edef68
* * threadproc/unix/threadpriv.c (apr_threadkey_private_delete):jorton2003-12-101-2/+4
| | | | | | | | | Define function regardless of HAVE_PTHREAD_KEY_DELETE. PR: 23837 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64833 13f79535-47bb-0310-9956-ffa450edef68
* Fix the apr_thread_once_init so it works and allow the thread test to notdreid2003-11-231-4/+9
| | | | | | | | | segfault. Some other small pieces of cleanup and reformatting to make the code easier to read. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64790 13f79535-47bb-0310-9956-ffa450edef68
* Get rid of tabs.ben2003-11-061-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64733 13f79535-47bb-0310-9956-ffa450edef68
* Endianness and APR types for random.ben2003-11-051-0/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64728 13f79535-47bb-0310-9956-ffa450edef68
* Really fix the build again.jorton2003-11-051-2/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64722 13f79535-47bb-0310-9956-ffa450edef68
* Make sure randomness is different after a fork.ben2003-11-031-0/+3
| | | | git-svn-id: http://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_tjorton2003-09-291-13/+9
| | | | | | | | | | | | 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: http://svn.apache.org/repos/asf/apr/apr/trunk@64663 13f79535-47bb-0310-9956-ffa450edef68
* axe these deprecated functions:trawick2003-09-033-18/+0
| | | | | | | | | | | | | | | | 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: http://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.jorton2003-07-141-1/+1
| | | | | | | Submitted by: Max Bowsher <maxb@ukf.net> git-svn-id: http://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 withjorton2003-07-071-4/+5
| | | | | | | recent versions of autoconf. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64562 13f79535-47bb-0310-9956-ffa450edef68
* Clean up a style issue; apr_get_os_error() is much cleaner.wrowe2003-06-181-1/+1
| | | | | | | | | Note that the result from WaitFor{*}() calls is a rather special case, since it has other interesting details. These were not touched since they are clearer as-is. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64542 13f79535-47bb-0310-9956-ffa450edef68
* Win32: WAIT_ABANDONED should be treated as a success. WAIT_FAILED (the onlystoddard2003-06-181-5/+5
| | | | | | | | other possible return code) should call GetLastError, canonicalize it then return that as apr_status git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64540 13f79535-47bb-0310-9956-ffa450edef68
* For apr_proc_detach(APR_PROC_DETACH_FOREGROUND), don't treattrawick2003-06-021-1/+5
| | | | | | | | | | a setsid() failure as fatal, as the usual cause is that the caller is already a process group leader. PR: 18519 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64524 13f79535-47bb-0310-9956-ffa450edef68
* (apr_proc_wait): Handle interrupted waitpid(2) calls by callingthommay2003-05-081-1/+5
| | | | | | | | | | | 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: http://svn.apache.org/repos/asf/apr/apr/trunk@64501 13f79535-47bb-0310-9956-ffa450edef68
* apr_proc_create() on Unix: Make the APR_SHELLCMD mode worktrawick2003-04-211-8/+36
| | | | | | | | | | | | | | 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: http://svn.apache.org/repos/asf/apr/apr/trunk@64490 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: when parsing #! line, adjust for the fact that apr_file_gets() nobjh2003-03-311-2/+7
| | | | | | | longer removes CR characters. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64464 13f79535-47bb-0310-9956-ffa450edef68
* Default spawned threads to detached so we avoid hanging on a waitpid() callbnicholes2003-03-101-1/+1
| | | | | | | since NetWare doesn't yet have a way to kill a spawned NLM. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64418 13f79535-47bb-0310-9956-ffa450edef68
* Default the current directory in the proc_attr structure since the NetWare OSbnicholes2003-03-041-0/+2
| | | | | | | doesn't have a process shell that handles it. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64395 13f79535-47bb-0310-9956-ffa450edef68
* As near as I can tell, Win32 will now correspond to Unix in terms of thewrowe2003-02-272-4/+15
| | | | | | | availability and lifetime of the hproc process handle. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64388 13f79535-47bb-0310-9956-ffa450edef68