Moved Zephyr support to external program

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@193 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Björn Groenvall
1995-11-22 17:34:54 +00:00
parent a445da10c5
commit 37149f4e33

View File

@@ -243,6 +243,24 @@ ScreenSaver(int save)
static void talk(int force_erase);
static unsigned long look(void);
static int
zrefresh()
{
switch (fork()) {
case -1:
fprintf(stderr, "Warning %s: Failed to fork zrefresh\n", ProgName);
return -1;
case 0:
/* Child */
execlp("zrefresh", "zrefresh", 0);
fprintf(stderr, "Warning %s: Failed to exec zrefresh\n", ProgName);
return -1;
default:
/* Parent */
break;
}
return 0;
}
static void
leave(void)
@@ -254,6 +272,7 @@ leave(void)
XUngrabKeyboard(dpy, CurrentTime);
#endif
ScreenSaver(0);
zrefresh();
exit(0);
}