Make clients exit orderly when there is no connection

This commit is contained in:
Yuval Fledel 2010-11-22 21:34:19 +02:00 committed by Kristian Høgsberg
parent 91b5999ce4
commit e9f5e36730
7 changed files with 28 additions and 0 deletions

View file

@ -413,6 +413,10 @@ int main(int argc, char *argv[])
struct gears *gears;
d = display_create(&argc, &argv, NULL);
if (d == NULL) {
fprintf(stderr, "failed to create display: %m\n");
return -1;
}
gears = gears_create(d);
display_run(d);