De traductores profesionales, empresas, páginas web y repositorios de traducción de libre uso.
Üst Ögetoggle child and parent tags
Метки верхнего уровняtoggle child and parent tags
Última actualización: 2011-10-23
Frecuencia de uso: 1
Calidad:
kadın 1the name of the male child voice
Женскийthe name of the male child voice
Última actualización: 2011-10-23
Frecuencia de uso: 1
Calidad:
?php $pid = pcntl_fork(); if ($pid == -1) {die("could not fork");} else if ($pid) {exit(); / / we are the parent} else {/ / we are the child} / / detatch from the controlling terminal if (!posix_setsid()) {die("could not detach from terminal");} / / setup signal handlers pcntl_signal(sigterm, "sig_handler"); pcntl_signal(sighup, "sig_handler"); / / loop forever performing tasks while(1) {/ / do something interesting here} function sig_handler($signo) {switch($signo) {case sigterm: / / handle shutdown tasks exit; break; case sighup: / / handle restart tasks break; default: / / handle all other signals}}?
Смотрите также
Última actualización: 2011-10-24
Frecuencia de uso: 1
Calidad:
Advertencia: contiene formato HTML invisible