php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #8214 Request for Signal Handling functions
Submitted: 2000-12-12 16:35 UTC Modified: 2002-02-09 23:15 UTC
From: jmoore@php.net Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0 Latest CVS ( OS: *nix - CGI
Private report: No CVE-ID: None
 [2000-12-12 16:35 UTC] jmoore@php.net
A few additions to the posix module to allow registering functions when certain signals are recieved would be cool. somthing like

posix_register_sig_func(char function,int signal);

where signal is HUP etc :)

would allow some long running systems in CGI mode with a graceous shutdown. 


James

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-12 16:49 UTC] joey@php.net
I would rather see:
posix_register_sig_func(char function, mixed signal)

And handle both "9" and "KILL" as valid signals.
 [2002-01-06 12:38 UTC] jan@php.net
doesen't pcnt do the job?
 [2002-02-09 23:15 UTC] jimw@php.net
pcntl does this.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Sep 09 20:01:27 2024 UTC