ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.html
(Generate patch)

Comparing libev/ev.html (file contents):
Revision 1.30 by root, Thu Nov 22 12:28:35 2007 UTC vs.
Revision 1.31 by root, Fri Nov 23 04:36:03 2007 UTC

4<head> 4<head>
5 <title>libev</title> 5 <title>libev</title>
6 <meta name="description" content="Pod documentation for libev" /> 6 <meta name="description" content="Pod documentation for libev" />
7 <meta name="inputfile" content="&lt;standard input&gt;" /> 7 <meta name="inputfile" content="&lt;standard input&gt;" />
8 <meta name="outputfile" content="&lt;standard output&gt;" /> 8 <meta name="outputfile" content="&lt;standard output&gt;" />
9 <meta name="created" content="Thu Nov 22 13:28:34 2007" /> 9 <meta name="created" content="Fri Nov 23 05:35:59 2007" />
10 <meta name="generator" content="Pod::Xhtml 1.57" /> 10 <meta name="generator" content="Pod::Xhtml 1.57" />
11<link rel="stylesheet" href="http://res.tst.eu/pod.css"/></head> 11<link rel="stylesheet" href="http://res.tst.eu/pod.css"/></head>
12<body> 12<body>
13<div class="pod"> 13<div class="pod">
14<!-- INDEX START --> 14<!-- INDEX START -->
272 <dd> 272 <dd>
273 <p>This function reinitialises the kernel state for backends that have 273 <p>This function reinitialises the kernel state for backends that have
274one. Despite the name, you can call it anytime, but it makes most sense 274one. Despite the name, you can call it anytime, but it makes most sense
275after forking, in either the parent or child process (or both, but that 275after forking, in either the parent or child process (or both, but that
276again makes little sense).</p> 276again makes little sense).</p>
277 <p>You <i>must</i> call this function after forking if and only if you want to 277 <p>You <i>must</i> call this function in the child process after forking if and
278use the event library in both processes. If you just fork+exec, you don't 278only if you want to use the event library in both processes. If you just
279have to call it.</p> 279fork+exec, you don't have to call it.</p>
280 <p>The function itself is quite fast and it's usually not a problem to call 280 <p>The function itself is quite fast and it's usually not a problem to call
281it just in case after a fork. To make this easy, the function will fit in 281it just in case after a fork. To make this easy, the function will fit in
282quite nicely into a call to <code>pthread_atfork</code>:</p> 282quite nicely into a call to <code>pthread_atfork</code>:</p>
283<pre> pthread_atfork (0, 0, ev_default_fork); 283<pre> pthread_atfork (0, 0, ev_default_fork);
284 284

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines