[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] libxl: Do not call assert() in signal handlers
On Thu, 2015-10-22 at 17:22 +0100, Ian Campbell wrote: > On Thu, 2015-10-22 at 16:39 +0100, Ian Jackson wrote: > > assert is not async-signal-safe. > > I don't doubt you, but I'm curious regarding a reference. > > http://pubs.opengroup.org/onlinepubs/9699919799/functions/assert.html doe > sn > 't appear to be it, unless it is too subtle for me. > > > In practice the effect of calling assert there is that if the > > assertion fails we might get a secondary crash, or other undesirable > > behaviour from stdio (which is how assert usually reports failures). > > Or maybe it's just transitive through the (usual) use of stdio as part of > assert()? > > > Mention in a comment in libxl__self_pipe_wakeup that it has to be > > async-signal-safe. > > > > Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> > > Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Applied. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |