diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-11-09 21:10:55 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-11-09 21:10:55 +0000 |
commit | 71d26fcc2b70c11e090064a3c26997bc862fff98 (patch) | |
tree | a2461949dd29152c2126ce62e66fcf4734dca7a8 /m4 | |
parent | 9baedcaeb8d262b760657ff68b9924fe89fba7a6 (diff) | |
download | ATCD-71d26fcc2b70c11e090064a3c26997bc862fff98.tar.gz |
Minor updates.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/features.m4 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/m4/features.m4 b/m4/features.m4 index e4dc2765157..7e5a133c109 100644 --- a/m4/features.m4 +++ b/m4/features.m4 @@ -109,6 +109,9 @@ Test_Aio::Test_Aio (void) Test_Aio::~Test_Aio (void) { + if (close (this->out_fd_) != 0) + perror ("close"); + delete aiocb_write_; delete aiocb_read_; delete [] buffer_write_; @@ -120,8 +123,8 @@ int Test_Aio::init (void) { // Open the output file. - this->out_fd_ = open ("test_aio.log", O_RDWR | O_CREAT | O_TRUNC, 0666); - if (this->out_fd_ == 0) + this->out_fd_ = open ("test_aio.log", O_RDWR | O_CREAT | O_TRUNC, 0600); + if (this->out_fd_ == -1) { perror ("open"); return -1; |