[PATCH] os: add FatalErrorSigSafe for signal-safe logging

Jamey Sharp jamey at minilop.net
Thu Feb 14 16:56:34 PST 2013


On Fri, Feb 15, 2013 at 09:35:00AM +1000, Peter Hutterer wrote:
> diff --git a/include/os.h b/include/os.h
> index c7108a5..2bdbf95 100644
> --- a/include/os.h
> +++ b/include/os.h
> @@ -655,6 +655,12 @@ FatalError(const char *f, ...)
>  _X_ATTRIBUTE_PRINTF(1, 2)
>      _X_NORETURN;
>  
> +/* XXX: DO NOT USE! Temporary */
> +extern _X_EXPORT void
> +FatalErrorSigSafe(const char *f, ...)
> +_X_ATTRIBUTE_PRINTF(1, 2)
> +    _X_NORETURN;
> +

Out of curiosity, do you really need to _X_EXPORT it if you only want it
used elsewhere in os/?

Jamey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg-devel/attachments/20130214/44a49f59/attachment.pgp>


More information about the xorg-devel mailing list