Branch: Tag:

2002-02-05

2002-02-05 19:15:23 by Martin Stjernholm <mast@lysator.liu.se>

Fixed calls to check_threads_etc in many places where we wait a while and
can be interrupted by signals.

Rev: src/backend.cmod:1.23
Rev: src/builtin_functions.c:1.420
Rev: src/dlopen.c:1.29
Rev: src/modules/CommonLog/clf.c:1.7
Rev: src/modules/Image/font.c:1.70
Rev: src/modules/Pipe/pipe.c:1.47
Rev: src/modules/files/efuns.c:1.110
Rev: src/modules/files/file.c:1.232
Rev: src/modules/files/socket.c:1.59
Rev: src/modules/files/udp.c:1.29
Rev: src/modules/system/system.c:1.120
Rev: src/object.c:1.197
Rev: src/signal_handler.c:1.216
Rev: src/threads.c:1.178

1: - /* $Id: font.c,v 1.69 2001/11/18 02:54:21 nilsson Exp $ */ + /* $Id: font.c,v 1.70 2002/02/05 19:08:56 mast Exp $ */   #include "global.h"      #define SPACE_CHAR 'i'
325:    fprintf(stderr,"FONT open '%s'\n",sp[-args].u.string->str);   #endif    fd = fd_open(sp[-args].u.string->str,fd_RDONLY,0); -  /* FIXME: check_threads_etc(); ? -  */ +  if (errno == EINTR) check_threads_etc();    } while(fd < 0 && errno == EINTR);       if (fd >= 0)