[Asterisk-code-review] core: Use ast alertpipe for Asterisk signal monitoring thread. (asterisk[master])
Corey Farrell
asteriskteam at digium.com
Thu Nov 9 20:01:13 CST 2017
Corey Farrell has posted comments on this change. ( https://gerrit.asterisk.org/7169 )
Change subject: core: Use ast_alertpipe for Asterisk signal monitoring thread.
......................................................................
Patch Set 1:
I tested SIGHUP and SIGTERM against the asterisk PID on Fedora 26. Both signals worked immediately with console, no fork and forking.
ast_alertpipe enables non-blocking mode but I think this is fine because we're using ast_poll (rather than letting read block).
One thing I noticed ast_alertpipe_write says to see write(2) for return value, but it actually returns zero on success and non-zero on error. I don't know if we fix the implementation or docs?
--
To view, visit https://gerrit.asterisk.org/7169
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Id4041a237d481ff699639e153ea6982fee14a462
Gerrit-Change-Number: 7169
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Comment-Date: Fri, 10 Nov 2017 02:01:13 +0000
Gerrit-HasComments: No
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171109/494c64f6/attachment.html>
More information about the asterisk-code-review
mailing list