From ce2c6eadf1a7f49465a51a4377f2705ce637715c Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Fri, 1 Jun 2001 03:56:50 +0000 Subject: Fix for EINTR problems when using jobserver. New translation files. Fix for @+ inside define macros being applied too widely. Various other bug fixes. --- remake.c | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'remake.c') diff --git a/remake.c b/remake.c index 06e8d31..029cd91 100644 --- a/remake.c +++ b/remake.c @@ -933,13 +933,8 @@ touch_file (file) { struct stat statbuf; char buf; - int status; - do - status = fstat (fd, &statbuf); - while (status < 0 && EINTR_SET); - - if (status < 0) + if (fstat (fd, &statbuf) < 0) TOUCH_ERROR ("touch: fstat: "); /* Rewrite character 0 same as it already is. */ if (read (fd, &buf, 1) < 0) @@ -1239,13 +1234,12 @@ name_mtime (name) { struct stat st; - while (stat (name, &st) != 0) - if (!EINTR_SET) - { - if (errno != ENOENT && errno != ENOTDIR) - perror_with_name ("stat:", name); - return NONEXISTENT_MTIME; - } + if (stat (name, &st) != 0) + { + if (errno != ENOENT && errno != ENOTDIR) + perror_with_name ("stat:", name); + return NONEXISTENT_MTIME; + } return FILE_TIMESTAMP_STAT_MODTIME (name, st); } -- cgit v1.2.3