[x265] [PATCH 1 of 5] cli: use sig_atomic_t type for variable modified by SIGINT handler
Steve Borho
steve at borho.org
Wed Sep 18 21:55:16 CEST 2013
On Wed, Sep 18, 2013 at 2:38 PM, SF Markus Elfring <
elfring at users.sourceforge.net> wrote:
> > +static volatile sig_atomic_t b_ctrl_c /* = 0 */;
> > static void sigint_handler(int)
> > {
> > - if (b_exit_on_ctrl_c)
> > - exit(0);
> > b_ctrl_c = 1;
> > }
>
> Now I am curious which function(s) will check this variable to achieve a
> corresponding reaction.
>
All it does is early-out the main loop(s) in main(). It's entirely file
local.
--
Steve Borho
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20130918/6c7fda8a/attachment.html>
More information about the x265-devel
mailing list