Commit 8f83367b authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

More noise.

parent 34cb26e0
...@@ -273,8 +273,9 @@ main(int argc, char **argv) ...@@ -273,8 +273,9 @@ main(int argc, char **argv)
if(fd < 0 && errno != ENOENT) if(fd < 0 && errno != ENOENT)
perror("open(babel-state)"); perror("open(babel-state)");
rc = unlink(state_file); rc = unlink(state_file);
if(fd >= 0 && rc < 0) { if(rc < 0)
perror("unlink(babel-state)"); perror("unlink(babel-state)");
if(fd >= 0 && rc < 0) {
/* If we couldn't unlink it, it's probably stale. */ /* If we couldn't unlink it, it's probably stale. */
close(fd); close(fd);
fd = -1; fd = -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment