1 | /* |
1 | /* |
|
|
2 | * libev event processing core, watcher management |
|
|
3 | * |
2 | * Copyright (c) 2007 Marc Alexander Lehmann <libev@schmorp.de> |
4 | * Copyright (c) 2007 Marc Alexander Lehmann <libev@schmorp.de> |
3 | * All rights reserved. |
5 | * All rights reserved. |
4 | * |
6 | * |
5 | * Redistribution and use in source and binary forms, with or without |
7 | * Redistribution and use in source and binary forms, with or without |
6 | * modification, are permitted provided that the following conditions are |
8 | * modification, are permitted provided that the following conditions are |
… | |
… | |
489 | } |
491 | } |
490 | |
492 | |
491 | /*****************************************************************************/ |
493 | /*****************************************************************************/ |
492 | |
494 | |
493 | void |
495 | void |
494 | ev_prefork (void) |
496 | ev_fork_prepare (void) |
495 | { |
497 | { |
496 | /* nop */ |
498 | /* nop */ |
497 | } |
499 | } |
498 | |
500 | |
499 | void |
501 | void |
500 | ev_postfork_parent (void) |
502 | ev_fork_parent (void) |
501 | { |
503 | { |
502 | /* nop */ |
504 | /* nop */ |
503 | } |
505 | } |
504 | |
506 | |
505 | void |
507 | void |
506 | ev_postfork_child (void) |
508 | ev_fork_child (void) |
507 | { |
509 | { |
508 | #if EV_USE_EPOLL |
510 | #if EV_USE_EPOLL |
509 | if (ev_method == EVMETHOD_EPOLL) |
511 | if (ev_method == EVMETHOD_EPOLL) |
510 | epoll_postfork_child (); |
512 | epoll_postfork_child (); |
511 | #endif |
513 | #endif |