~ubuntu-branches/debian/sid/apr/sid

« back to all changes in this revision

Viewing changes to include/apr_thread_proc.h

  • Committer: Package Import Robot
  • Author(s): Stefan Fritsch
  • Date: 2013-12-30 16:37:54 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20131230163754-mn1794cg19jswqqj
Tags: 1.5.0-1
* New upstream version
* Pull changes from upstream 1.5.x branch up to r1552863 to fix problems
  on the FreeBSD 10 kernel with accept4() and non-blocking sockets.

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
#define APR_OC_REASON_DEATH         0     /**< child has died, caller must call
115
115
                                           * unregister still */
116
116
#define APR_OC_REASON_UNWRITABLE    1     /**< write_fd is unwritable */
117
 
#define APR_OC_REASON_RESTART       2     /**< a restart is occuring, perform
 
117
#define APR_OC_REASON_RESTART       2     /**< a restart is occurring, perform
118
118
                                           * any necessary cleanup (including
119
119
                                           * sending a special signal to child)
120
120
                                           */
123
123
                                           * kill the child) */
124
124
#define APR_OC_REASON_LOST          4     /**< somehow the child exited without
125
125
                                           * us knowing ... buggy os? */
126
 
#define APR_OC_REASON_RUNNING       5     /**< a health check is occuring, 
 
126
#define APR_OC_REASON_RUNNING       5     /**< a health check is occurring, 
127
127
                                           * for most maintainence functions
128
128
                                           * this is a no-op.
129
129
                                           */
197
197
typedef void *(APR_THREAD_FUNC *apr_thread_start_t)(apr_thread_t*, void*);
198
198
 
199
199
typedef enum {
200
 
    APR_KILL_NEVER,             /**< process is never sent any signals */
 
200
    APR_KILL_NEVER,             /**< process is never killed (i.e., never sent
 
201
                                 * any signals), but it will be reaped if it exits
 
202
                                 * before the pool is cleaned up */
201
203
    APR_KILL_ALWAYS,            /**< process is sent SIGKILL on apr_pool_t cleanup */
202
204
    APR_KILL_AFTER_TIMEOUT,     /**< SIGTERM, wait 3 seconds, SIGKILL */
203
205
    APR_JUST_WAIT,              /**< wait forever for the process to complete */
632
634
 *            APR_NOWAIT -- return immediately regardless of if the 
633
635
 *                          child is dead or not.
634
636
 * </PRE>
635
 
 * @remark The childs status is in the return code to this process.  It is one of:
 
637
 * @remark The child's status is in the return code to this process.  It is one of:
636
638
 * <PRE>
637
639
 *            APR_CHILD_DONE     -- child is no longer running.
638
640
 *            APR_CHILD_NOTDONE  -- child is still running.