diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-10-14 21:56:14 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-10-14 21:56:14 +0200 |
commit | be8517b9c16e38cf4f9f564bd1f0528f13f4313a (patch) | |
tree | 0c82e3a55725204a28bb87a79f45ef15f4027e1f /src | |
parent | update readme (diff) | |
download | mongotimer-be8517b9c16e38cf4f9f564bd1f0528f13f4313a.tar.gz mongotimer-be8517b9c16e38cf4f9f564bd1f0528f13f4313a.tar.bz2 mongotimer-be8517b9c16e38cf4f9f564bd1f0528f13f4313a.tar.xz |
linux guarantees that a call to clock will always close the file descriptor if valid
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mongoclock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongoclock.c b/src/mongoclock.c index 9d822e5..3170c95 100644 --- a/src/mongoclock.c +++ b/src/mongoclock.c @@ -294,7 +294,7 @@ int main(int argc, char* argv[]) fprintf(stdout, "\033[?25h\n\033[?1049l"); fflush(stdout); - TEMP_FAILURE_RETRY(close(fd)); + close(fd); return 0; fail: @@ -302,7 +302,7 @@ int main(int argc, char* argv[]) fprintf(stdout, "\033[?25h\n\033[?1049l"); fflush(stdout); if (fd >= 0) - TEMP_FAILURE_RETRY(close(fd)); + close(fd); return 1; (void) argc; } |