diff options
author | Doug Ledford <dledford@redhat.com> | 2008-07-25 00:35:11 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2008-07-25 00:35:11 +0200 |
commit | fb97b4d691c04d9303571d7eba3cef4a97264e2f (patch) | |
tree | f2ecbee4bd0d262c6a92ac631c642458921f1d8b /Monitor.c | |
parent | Add support for distribution specific build extensions (diff) | |
download | mdadm-fb97b4d691c04d9303571d7eba3cef4a97264e2f.tar.xz mdadm-fb97b4d691c04d9303571d7eba3cef4a97264e2f.zip |
Clean up usage of open()
Fix on call that passed an invalid mode to open
Don't pass a third arg unless we also pass O_CREAT
Use symbolic args for 2nd and 3rd args
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'Monitor.c')
-rw-r--r-- | Monitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -156,7 +156,7 @@ int Monitor(mddev_dev_t devlist, return 1; } close(0); - open("/dev/null", 3); + open("/dev/null", O_RDWR); dup2(0,1); dup2(0,2); setsid(); |