diff options
| author | Kristian Høgsberg <krh@bitplanet.net> | 2010-12-01 16:52:15 -0500 |
|---|---|---|
| committer | Kristian Høgsberg <krh@bitplanet.net> | 2010-12-01 16:53:15 -0500 |
| commit | caa64425564a54431dd8304e005430a453cc2e97 (patch) | |
| tree | 7087014a2505edf79e6e27607cd08be51bc18b61 /compositor/compositor.c | |
| parent | compositor: Shut down properly so we remove the socket (diff) | |
| download | wayland-caa64425564a54431dd8304e005430a453cc2e97.tar wayland-caa64425564a54431dd8304e005430a453cc2e97.tar.gz wayland-caa64425564a54431dd8304e005430a453cc2e97.tar.bz2 wayland-caa64425564a54431dd8304e005430a453cc2e97.tar.lz wayland-caa64425564a54431dd8304e005430a453cc2e97.tar.xz wayland-caa64425564a54431dd8304e005430a453cc2e97.tar.zst wayland-caa64425564a54431dd8304e005430a453cc2e97.zip | |
compositor: Use a virtual destructor when shutting down
Backend can now rely on their destroy function getting called on shutdown,
so reset tty etc there instead of handling SIGTERM twice.
Diffstat (limited to 'compositor/compositor.c')
| -rw-r--r-- | compositor/compositor.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compositor/compositor.c b/compositor/compositor.c index 28f16dd..a09f6d9 100644 --- a/compositor/compositor.c +++ b/compositor/compositor.c @@ -1452,5 +1452,7 @@ int main(int argc, char *argv[]) wl_display_destroy(display); + ec->destroy(ec); + return 0; } |
