~sbalneav/ltsp/xexit

« back to all changes in this revision

Viewing changes to src/xexit.c

  • Committer: Scott Balneaves
  • Date: 2010-05-05 19:19:19 UTC
  • Revision ID: sbalneav@3jane-20100505191919-ee8bfydhgxv1jkg8
Should be tracking an X IO error (disconnection)

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
char *script;
26
26
 
27
27
int
28
 
handle_xerror(Display *d, XErrorEvent *e)
 
28
handle_xerror(Display *d)
29
29
{
30
30
    XCloseDisplay(d);
31
31
    execlp(script, script, NULL);
110
110
 
111
111
    atomname = "LTSP_XEXIT";
112
112
 
113
 
    XSetErrorHandler(handle_xerror);
 
113
    XSetIOErrorHandler(handle_xerror);
114
114
 
115
115
    root = RootWindow(dpy, DefaultScreen(dpy));
116
116