Quit if set or drop master fails

dev
Kristian Høgsberg 15 years ago
parent 27803c6859
commit 6a9bbd0db2
  1. 2
      compositor.c

@ -1381,6 +1381,7 @@ static void on_enter_vt(int signal_number, void *data)
ret = drmSetMaster(ec->drm_fd); ret = drmSetMaster(ec->drm_fd);
if (ret) { if (ret) {
fprintf(stderr, "failed to set drm master\n"); fprintf(stderr, "failed to set drm master\n");
on_term_signal(SIGTERM, ec);
return; return;
} }
@ -1405,6 +1406,7 @@ static void on_leave_vt(int signal_number, void *data)
ret = drmDropMaster(ec->drm_fd); ret = drmDropMaster(ec->drm_fd);
if (ret) { if (ret) {
fprintf(stderr, "failed to drop drm master\n"); fprintf(stderr, "failed to drop drm master\n");
on_term_signal(SIGTERM, ec);
return; return;
} }

Loading…
Cancel
Save