~ubuntu-branches/ubuntu/trusty/serf/trusty-proposed

« back to all changes in this revision

Viewing changes to buckets/allocator.c

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2013-12-31 13:17:16 UTC
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: package-import@ubuntu.com-20131231131716-z7lpavv1il3sxb7g
Tags: upstream-1.3.3
ImportĀ upstreamĀ versionĀ 1.3.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
    }
145
145
#endif
146
146
 
147
 
    /* ### this implies buckets cannot cross a fork/exec. desirable?
148
 
     *
149
 
     * ### hmm. it probably also means that buckets cannot be AROUND
150
 
     * ### during a fork/exec. the new process will try to clean them
151
 
     * ### up and figure out there are unfreed blocks...
152
 
     */
 
147
    /* NOTE: On a fork/exec, the child won't bother cleaning up memory.
 
148
             This is just fine... the memory will go away at exec.
 
149
 
 
150
       NOTE: If the child will NOT perform an exec, then the parent or
 
151
             the child will need to decide who to clean up any
 
152
             outstanding connection/buckets (as appropriate).  */
153
153
    apr_pool_cleanup_register(pool, allocator,
154
 
                              allocator_cleanup, allocator_cleanup);
 
154
                              allocator_cleanup, apr_pool_cleanup_null);
155
155
 
156
156
    return allocator;
157
157
}