Thomas Hindoe Paaboel Andersen
6f53e671aa
util: avoid double close of fd
...
We could end with a double close if we close the fd loop and flush_fd
fails. That would make us goto fail and there we close the fd once
again. This patch sets the fd to the return value for safe_close: -1
A fd with negative value will be ignored by the next call to
safe_close.
CID#996223
2014-10-09 00:19:57 +02:00
..
2014-09-11 17:47:37 +02:00
2014-09-15 16:08:50 +02:00
2014-10-05 15:29:41 -04:00
2014-09-11 00:53:49 +02:00
2014-08-03 21:46:07 -04:00
2014-08-03 21:46:07 -04:00
2014-10-03 08:31:53 -04:00
2014-10-07 18:02:38 +02:00
2014-08-04 16:25:24 +02:00
2014-08-04 16:25:24 +02:00
2014-09-15 16:08:50 +02:00
2014-02-22 21:28:55 +01:00
2014-10-03 16:07:14 +02:00
2014-10-08 21:35:38 +02:00
2014-09-25 16:39:18 +02:00
2014-08-22 12:44:17 +02:00
2014-06-20 13:36:28 +02:00
2014-09-25 18:16:04 +02:00
2014-08-03 21:46:07 -04:00
2014-03-07 02:40:24 +01:00
2014-08-03 21:46:07 -04:00
2014-10-05 15:29:41 -04:00
2014-08-04 16:25:24 +02:00
2014-10-03 20:42:09 -04:00
2014-08-13 20:41:41 -04:00
2014-09-25 16:39:18 +02:00
2014-06-21 16:25:15 +02:00
2014-09-04 21:42:52 +02:00
2014-09-16 17:34:54 +02:00
2014-08-21 17:24:21 +02:00
2014-10-08 22:37:45 +02:00
2014-09-29 11:08:04 -04:00
2014-08-15 14:41:50 +02:00
2014-10-08 17:30:49 +02:00
2014-10-02 19:07:30 +02:00
2014-10-05 22:43:07 +02:00
2014-09-18 15:28:07 +02:00
2014-10-02 14:39:07 +02:00
2014-09-27 19:29:45 -04:00
2014-09-15 16:08:50 +02:00
2014-08-03 21:46:07 -04:00
2014-08-03 21:46:07 -04:00
2014-09-29 11:09:39 -04:00
2014-09-25 16:39:18 +02:00
2014-10-08 15:52:07 +02:00
2014-08-12 01:54:40 +02:00
2014-09-19 00:15:39 +02:00
2014-09-19 00:15:39 +02:00
2014-09-15 17:02:25 +02:00
2014-07-31 08:56:03 -04:00
2014-06-19 16:55:20 +02:00
2014-09-15 16:08:50 +02:00
2014-08-11 18:35:54 +02:00
2014-09-15 16:08:50 +02:00
2014-08-20 00:18:14 +02:00
2014-08-04 16:25:24 +02:00
2014-10-09 00:19:57 +02:00
2014-09-27 00:30:00 +02:00
2014-08-03 21:46:07 -04:00
2014-09-18 17:59:15 +02:00
2014-09-17 09:11:02 +02:00
2014-06-13 13:26:32 +02:00
2014-10-08 12:44:00 +02:00
2014-10-02 19:07:30 +02:00
2014-09-18 18:32:18 +02:00
2014-10-01 23:25:50 +02:00
2014-10-04 23:55:35 +02:00
2014-08-18 17:49:53 +02:00
2014-09-18 23:37:07 +02:00
2014-10-01 08:43:09 -04:00
2014-10-05 15:29:41 -04:00
2014-09-18 21:57:49 +02:00
2014-07-26 15:08:42 -04:00
2014-05-15 15:29:58 +02:00
2014-09-30 21:27:54 +02:00