mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
21 lines
947 B
Markdown
21 lines
947 B
Markdown
# PHP Fork Daemon
|
|
A library to make setup and management of forking daemons in PHP easy.
|
|
|
|
## Features
|
|
- Easy management of PHP forks
|
|
- Return result of children by callback or polling parent for results
|
|
- Splitting work units into buckets
|
|
- Preforking callbacks to manage resources before forking
|
|
- Dynamic setting of number of children / work per child
|
|
|
|
## Usage
|
|
Check out the examples in the examples directory
|
|
``php example/blocking.php``
|
|
|
|
## Caveats
|
|
- You need to specify ``declare(ticks=1);`` before inclusion of the fork-daemon library, otherwise signals wont be handled. This *must* be done in the main PHP file, as ``declare(ticks=N);`` only works for the file in which it is declared and the files which that file includes. Reference: [PHP Documentation](http://php.net/manual/en/control-structures.declare.php#control-structures.declare.ticks)
|
|
|
|
## License
|
|
Copyright 2013 Barracuda Networks, Inc.
|
|
Licensed under the MIT License
|