summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>1999-11-09 21:10:55 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>1999-11-09 21:10:55 +0000
commitb1ad555bc7775d20d308902e983a364080a43a30 (patch)
treea2461949dd29152c2126ce62e66fcf4734dca7a8 /m4
parentbe1d583e97401eea47955d2de3d8cfc3c9b3179c (diff)
downloadATCD-b1ad555bc7775d20d308902e983a364080a43a30.tar.gz
Minor updates.
Diffstat (limited to 'm4')
-rw-r--r--m4/features.m47
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;