Changeset bdda8c2 in git for findexec/feFopen.cc


Ignore:
Timestamp:
Apr 9, 2013, 4:39:42 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b52fc4b2495505785981d640dcf7eb3e456778ef')
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.