summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/unmount.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/unmount.c')
-rw-r--r--cpukit/libcsupport/src/unmount.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/cpukit/libcsupport/src/unmount.c b/cpukit/libcsupport/src/unmount.c
index b888dee240..a6e0f40442 100644
--- a/cpukit/libcsupport/src/unmount.c
+++ b/cpukit/libcsupport/src/unmount.c
@@ -70,12 +70,9 @@ int unmount( const char *path )
rtems_filesystem_eval_path_cleanup( &ctx );
if ( rv == 0 ) {
- rtems_event_set out;
- rtems_status_code sc = rtems_event_receive(
- RTEMS_FILESYSTEM_UNMOUNT_EVENT,
- RTEMS_EVENT_ALL | RTEMS_WAIT,
- RTEMS_NO_TIMEOUT,
- &out
+ rtems_status_code sc = rtems_event_transient_receive(
+ RTEMS_WAIT,
+ RTEMS_NO_TIMEOUT
);
if ( sc != RTEMS_SUCCESSFUL ) {