Skip to content

Commit cf5f6fc

Browse files
committed
Fix inappropriate signal handler visibility
1 parent 2fe1a1a commit cf5f6fc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/AsyncTask.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,13 @@ public function withoutTimeLimit(): static
270270
return $this;
271271
}
272272

273-
private function pcntlGracefulExit(): never
273+
/**
274+
* On Unix only. Signal handler for SIGTERM to catch it and exit() instead.
275+
*
276+
* NOT FOR EXTERNAL USE!
277+
* @return never
278+
*/
279+
public function pcntlGracefulExit(): never
274280
{
275281
// just exit is ok
276282
// exit asap so that our error checking inside shutdown functions can take place outside of the usual max_execution_time limit

0 commit comments

Comments
 (0)