diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-13 09:22:19 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-15 10:29:34 +0200 |
commit | baef823cd550449bfbcc36625b9571389d8ad1af (patch) | |
tree | 238c1952d23dc09d41ae99d186d0656f78ed857b /cpukit/libcsupport/src/fchown.c | |
parent | 98041b685e9cbe4916d8684372389e899698da16 (diff) |
libio: Add hold/drop iop reference
Check iop reference count in close() and return -1 with errno set to
EBUSY in case the file descriptor is still in use.
Update #3132.
Diffstat (limited to 'cpukit/libcsupport/src/fchown.c')
-rw-r--r-- | cpukit/libcsupport/src/fchown.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/fchown.c b/cpukit/libcsupport/src/fchown.c index bd787d89e3..8c3d9b2c6c 100644 --- a/cpukit/libcsupport/src/fchown.c +++ b/cpukit/libcsupport/src/fchown.c @@ -72,5 +72,7 @@ int fchown( int fd, uid_t owner, gid_t group ) rtems_filesystem_instance_unlock( &iop->pathinfo ); + rtems_libio_iop_drop( iop ); + return rv; } |