… | |
… | |
127 | .\} |
127 | .\} |
128 | .rm #[ #] #H #V #F C |
128 | .rm #[ #] #H #V #F C |
129 | .\" ======================================================================== |
129 | .\" ======================================================================== |
130 | .\" |
130 | .\" |
131 | .IX Title ""<STANDARD INPUT>" 1" |
131 | .IX Title ""<STANDARD INPUT>" 1" |
132 | .TH "<STANDARD INPUT>" 1 "2007-11-22" "perl v5.8.8" "User Contributed Perl Documentation" |
132 | .TH "<STANDARD INPUT>" 1 "2007-11-23" "perl v5.8.8" "User Contributed Perl Documentation" |
133 | .SH "NAME" |
133 | .SH "NAME" |
134 | libev \- a high performance full\-featured event loop written in C |
134 | libev \- a high performance full\-featured event loop written in C |
135 | .SH "SYNOPSIS" |
135 | .SH "SYNOPSIS" |
136 | .IX Header "SYNOPSIS" |
136 | .IX Header "SYNOPSIS" |
137 | .Vb 1 |
137 | .Vb 1 |
… | |
… | |
347 | This function reinitialises the kernel state for backends that have |
347 | This function reinitialises the kernel state for backends that have |
348 | one. Despite the name, you can call it anytime, but it makes most sense |
348 | one. Despite the name, you can call it anytime, but it makes most sense |
349 | after forking, in either the parent or child process (or both, but that |
349 | after forking, in either the parent or child process (or both, but that |
350 | again makes little sense). |
350 | again makes little sense). |
351 | .Sp |
351 | .Sp |
352 | You \fImust\fR call this function after forking if and only if you want to |
352 | You \fImust\fR call this function in the child process after forking if and |
353 | use the event library in both processes. If you just fork+exec, you don't |
353 | only if you want to use the event library in both processes. If you just |
354 | have to call it. |
354 | fork+exec, you don't have to call it. |
355 | .Sp |
355 | .Sp |
356 | The function itself is quite fast and it's usually not a problem to call |
356 | The function itself is quite fast and it's usually not a problem to call |
357 | it just in case after a fork. To make this easy, the function will fit in |
357 | it just in case after a fork. To make this easy, the function will fit in |
358 | quite nicely into a call to \f(CW\*(C`pthread_atfork\*(C'\fR: |
358 | quite nicely into a call to \f(CW\*(C`pthread_atfork\*(C'\fR: |
359 | .Sp |
359 | .Sp |