weston/clients
Pekka Paalanen 9229a45116 shared: rewrite fail_on_null() as abort_oom_if_null()
Recently I learnt that fprintf() is not async-signal-safe. Maybe it also
attempts to allocate memory sometimes. Hence, using it when we
presumably are out of memory is wishful thinking.

Therefore replace that with async-signal-safe code. If you have to check
pointers from traditional signal handlers, now you could do that too!

While doing this, we also lose the string formatting for line number. I
would argue that printing file and line number is not that useful, if
the system really is out of memory. If not out of memory, a core dump
would give us much more detailed information about what went wrong.

clients/window.c had some calls to fail_on_null() and these are simply
replaced. They were used for checking that creating new wl_proxy by
issuing a protocol request worked, and IIRC that only fails on
out-of-memory, so the same rationale applies here.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
2022-07-20 12:44:12 +03:00
..
calibrator.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
clickdot.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
cliptest.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
confine.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
content_protection.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
desktop-shell.c desktop-shell: Use custom_env to launch panel clients 2022-07-19 14:12:37 +00:00
dnd.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
editor.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
eventdemo.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
flower.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
fullscreen.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
image.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
ivi-shell-user-interface.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
keyboard.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
meson.build clients/simple-egl: Handle buffer scale and transform 2022-05-31 12:08:06 +00:00
multi-resource.c multi-resource: Convert to xdg-shell 2021-10-14 09:28:04 +00:00
presentation-shm.c clients/presentation-shm: Bind to xdg_wm_base version 1 2022-06-30 15:16:46 +02:00
resizor.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
scaler.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
screenshot.c screenshooter: rename some functions to avoid conflicts 2020-10-27 12:19:39 +00:00
simple-damage.c clients/simple-*: Add appids for other clients 2022-01-21 18:39:23 +00:00
simple-dmabuf-egl.c clients/simple-dmabuf-*: Use gbm_bo_create_with_modifiers2 2022-05-23 13:25:34 +00:00
simple-dmabuf-feedback.c clients/simple-dmabuf-*: Use gbm_bo_create_with_modifiers2 2022-05-23 13:25:34 +00:00
simple-dmabuf-v4l.c clients/simple-dmabuf-*: Increase buffer limit to four 2022-02-17 12:26:41 +01:00
simple-egl.c clients/simple-egl: Fix angle reset on benchmark interval 2022-06-14 13:11:59 +02:00
simple-im.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
simple-shm.c clients/simple-*: Add appids for other clients 2022-01-21 18:39:23 +00:00
simple-touch.c simple-touch: Exit on xdg_toplevel::close 2021-10-15 16:52:08 +00:00
smoke.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
stacking.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
subsurfaces.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
terminal.c weston-terminal: Don't leak Cairo fonts 2022-06-29 14:33:21 +01:00
touch-calibrator.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
transformed.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
weston-debug.c weston-debug: Handle destruction of stream description 2021-06-01 13:55:33 +03:00
window.c shared: rewrite fail_on_null() as abort_oom_if_null() 2022-07-20 12:44:12 +03:00
window.h toytoolkit: Delete remnants of EGL support 2022-06-29 14:33:21 +01:00