From 862c5bd6ddc794e658770cfe5283e2833e70712f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 22 Sep 2008 02:36:51 -0700 Subject: Remove EINTR checking for open(2) open(2) should only interrupt on "slow" devices, afaik... --- src/state_file.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/state_file.c') diff --git a/src/state_file.c b/src/state_file.c index 365baec0f..d6dba0f6e 100644 --- a/src/state_file.c +++ b/src/state_file.c @@ -55,8 +55,7 @@ void write_state_file(void) if (!sfpath) return; - while (((fd = open(sfpath, O_WRONLY|O_TRUNC|O_CREAT, 0666)) < 0) && - errno == EINTR); + fd = open(sfpath, O_WRONLY|O_TRUNC|O_CREAT, 0666); if (fd < 0) { ERROR("problems opening state file \"%s\" for writing: %s\n", sfpath, strerror(errno)); -- cgit v1.2.3