Bug #70536 [Opn]: Webserver crashes when posix_kill PID is null

From: Date: Sun, 20 Sep 2015 16:38:11 +0000
Subject: Bug #70536 [Opn]: Webserver crashes when posix_kill PID is null
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196116@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70536&edit=1 ID: 70536 Updated by: laruence@php.net Reported by: roberto-1995 at live dot it Summary: Webserver crashes when posix_kill PID is null Status: Open Type: Bug Package: POSIX related Operating System: Debian GNU/Linux PHP Version: 5.4.45 Block user comment: N Private report: N New Comment: If pid equals 0, then sig is sent to every process in the process group of the calling process. Previous Comments: ------------------------------------------------------------------------ [2015-09-20 15:13:33] roberto-1995 at live dot it Description: ------------ Lighttpd web server: getting a pid from a database. there was no row so I was getting null. when calling posix_kill(SIGUSR1, $pid) the webserver crashed. Test script: --------------- <?php $pid = NULL; posix_kill(SIGUSR1, $pid); ?> ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70536&edit=1

« previous php.bugs (#196116) next »