|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-12-18 11:10 UTC] fantom at fantom-lab dot ru
Description: ------------ Not available work with signals, cause second param of event_set is "resource", but for signals must be integer. Ex: event_set($event, SIGINT, EV_SIGNAL | EV_PERSIST, 'func'); PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 19 22:00:01 2025 UTC |
Strange anomality $eventBase = event_base_new(); ... $f = fopen(__FILE__, 'r'); $event = event_new(); function test(){ echo "SIG!\n" ; } event_set($event, $f, EV_SIGNAL | EV_PERSIST, 'test'); event_base_set($event, $eventBase); event_add($event); ... then run script and send signal from terminal: # kill -USR1 [prosess_id] after that script print "SIG!" and break