|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54501 event_buffer_write from libevent dont work in a forked process
Submitted: 2011-04-10 02:42 UTC Modified: 2011-04-11 13:11 UTC
From: fireangel_info at yahoo dot com Assigned:
Status: Not a bug Package: PCNTL related
PHP Version: 5.3.6 OS: Debian-60-squeeze-64-minimal
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
22 + 41 = ?
Subscribe to this entry?

 [2011-04-10 02:42 UTC] fireangel_info at yahoo dot com
From manual page: Values

// event_buffer_write($buffer,'asdawdasd'); <== here it will send the 'asdawdasd'
  $pid = pcntl_fork();
    switch ($pid) {
    case -1: // Error
        die('Fork failed');
    case 0: // Child
   	event_buffer_write($buffer,'asdawdasd');// $buffer is a valid connection/ <== here it will NOT send the 'asdawdasd'

     posix_kill($thispid, 9); 

$buffer resource is transmited to the child but event_buffer_write wont run.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-04-11 13:11 UTC]
-Status: Open +Status: Bogus
 [2011-04-11 13:11 UTC]
Please report bugs in PECL packages on the PECL bug tracker; in this case, at
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Dec 09 23:01:27 2023 UTC