Changeset bdda8c2 in git for findexec


Ignore:
Timestamp:
Apr 9, 2013, 4:39:42 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
2d5ff537ab672bcbb2ca73df6830672f38b1ea63
Parents:
bc0d32def5d3461a77eed40c1e1a3d254811858a
Message:
add: handling signals in system calls, p2
File:
1 edited

Legend:

Unmodified
Added
Removed
  • findexec/feFopen.cc

    rbc0d32 rbdda8c2  
    55#include <sys/stat.h>
    66#include <unistd.h>
     7#include <errno.h>
    78
    89#include "config.h"
     
    9798  {
    9899    struct stat statbuf;
    99     if ((stat(path,&statbuf)==0)
     100    int res = -1;
     101    do
     102    {
     103      res = stat(path,&statbuf);
     104    } while((res < 0) and (errno == EINTR));
     105    if ((res == 0)
    100106    && (S_ISREG(statbuf.st_mode)))
    101107      f = myfopen(path,mode);
Note: See TracChangeset for help on using the changeset viewer.