Jerzi Kaminsky
709b53bd43
Fix location reported by sway_assert
8 years ago
Jerzi Kaminsky
eb3b1ec5f1
Fix variadic forwarding in sway_assert
...
_sway_assert is a variadic function which tries
to delegate to another variadic function. This
requires a vprintf-style variant of the delegate.
https://stackoverflow.com/a/150616
8 years ago
Drew DeVault
9aed9d9359
UnGNUify the codebase
8 years ago
Drew DeVault
9ad1e6b40f
Handle malloc failure in ipc_recv_response
8 years ago
Drew DeVault
416417a54c
Reorganize includes
8 years ago
Tony Crisci
70360c5c07
Add timestamp to log messages
8 years ago
Drew DeVault
c8917395c0
Remove SIGSERV and SIGABORT handler
...
From now on let's just let the core dumps happen and ask users to
provide them.
8 years ago
David Eklov
26842ff383
Add get_log_level() to encapsulate v (current log level)
...
This patch also makes all global variable in log.c static.
9 years ago
Eric Engestrom
cc9d1cacbb
common: refactor sway_log()
...
This removes most preprocessor logic, leaving it only it the header.
9 years ago
Eric Engestrom
f53ddbe800
common: fix double-close in error_handler()
9 years ago
Eric Engestrom
a1bb58017b
Fix off-by-one bug in log functions
9 years ago
Mikkel Oscar Lyderik
5e253fdd9a
Correctly exit sway on errors.
...
Calling `exit` in sway_terminate prevents sway from correctly shutting
down (freeing data, cleanly terminating the ipc server, etc.).
A better way is to exit straight away if the failure occurs before
`wlc_run` and use sway_abort as usual if it occur when wlc is running.
9 years ago
Mikkel Oscar Lyderik
bacd40d6db
Fix clang warnings
9 years ago
Drew DeVault
e5bb08cc18
Print /proc/<pid>/maps on segfault
9 years ago
robotanarchy
94cac7a014
use CMake's FindBacktrace for backtrace feature detection
9 years ago
Drew DeVault
bfcabe48ef
Start fleshing out wayland client implementation
...
This introduces a basic shared framework for making wayland clients
within sway itself.
9 years ago