now E shouldnt segv if efsd goes pfffffffffft

SVN revision: 4226
This commit is contained in:
Carsten Haitzler 2001-02-15 23:10:30 +00:00
parent ba4c6110bb
commit 2920d940f6
1 changed files with 28 additions and 27 deletions

View File

@ -11,9 +11,9 @@ _e_fs_fd_handle_a_la_cK(int fd)
EfsdEvent ev;
Evas_List l;
while (efsd_events_pending(ec))
while ((ec) && efsd_events_pending(ec))
{
bzero(&ev, sizeof(EfsdEvent));
ZERO(&ev, EfsdEvent, 1);
if (efsd_next_event(ec, &ev) >= 0)
{
@ -29,6 +29,7 @@ _e_fs_fd_handle_a_la_cK(int fd)
{
efsd_close(ec);
e_del_event_fd(fd);
ec = NULL;
/* FIXME: need to queue a popup dialog here saying */
/* efsd went wonky */
printf("EEEEEEEEEEK efsd went wonky\n");