Page MenuHomePhabricator

Where available, use async_signals in libphutil
ClosedPublic

Authored by epriestley on Jan 12 2017, 11:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 7, 4:35 PM
Unknown Object (File)
Tue, May 7, 3:10 AM
Unknown Object (File)
Sat, May 4, 7:05 AM
Unknown Object (File)
Tue, Apr 23, 11:50 AM
Unknown Object (File)
Fri, Apr 19, 6:05 PM
Unknown Object (File)
Wed, Apr 17, 3:05 PM
Unknown Object (File)
Apr 11 2024, 7:15 AM
Unknown Object (File)
Apr 7 2024, 12:13 PM
Subscribers
None

Details

Summary

Ref T9640. In libphutil, switches to the PHP 7.1 async_signals mechanism when it is available.

Test Plan

With the next change, ran daemons with bin/phd start and bin/phd debug, then ^C'd them.

  • Before patch: long hang.
  • After patch: They responded to the signals normally and exited promptly.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable