X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fphosphor.c;h=724bbb5312807fa3c04e196fc367394a95969380;hp=6f9fe9170a261d88bf174ce61a31bed7e897ee8e;hb=6b1c86cf395f59389e4ece4ea8f4bea2c332745b;hpb=488f2fa8fbdbc77e91a70da2962d73af49e6cace diff --git a/hacks/phosphor.c b/hacks/phosphor.c index 6f9fe917..724bbb53 100644 --- a/hacks/phosphor.c +++ b/hacks/phosphor.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1999-2006 Jamie Zawinski +/* xscreensaver, Copyright (c) 1999-2008 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -1338,7 +1338,7 @@ static void drain_input (p_state *state) { XtAppContext app = XtDisplayToApplicationContext (state->dpy); - if (state->input_available_p) + if (state->input_available_p && state->pipe) { unsigned char s[2]; int n = read (fileno (state->pipe), (void *) s, 1);