Skip to content

Commit 395bf07

Browse files
committed
sapi/cli: Use explicit -1 value to check failure of I/O function
1 parent 7e25257 commit 395bf07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/cli/php_cli_server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2396,7 +2396,7 @@ static void php_cli_server_dtor(php_cli_server *server) /* {{{ */
23962396
do {
23972397
if (waitpid(php_cli_server_workers[php_cli_server_worker],
23982398
&php_cli_server_worker_status,
2399-
0) == FAILURE) {
2399+
0) == (pid_t) -1) {
24002400
/* an extremely bad thing happened */
24012401
break;
24022402
}

0 commit comments

Comments
 (0)