summaryrefslogtreecommitdiffstats
path: root/tools/schedsim/shell/shared/main_semflush.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/schedsim/shell/shared/main_semflush.c')
-rw-r--r--tools/schedsim/shell/shared/main_semflush.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/schedsim/shell/shared/main_semflush.c b/tools/schedsim/shell/shared/main_semflush.c
index fb656204c9..17638e8c25 100644
--- a/tools/schedsim/shell/shared/main_semflush.c
+++ b/tools/schedsim/shell/shared/main_semflush.c
@@ -31,6 +31,8 @@ int rtems_shell_main_semaphore_flush(
rtems_id id;
rtems_status_code status;
+ CHECK_RTEMS_IS_UP();
+
if (argc != 2) {
fprintf( stderr, "%s: Usage [name|id]\n", argv[0] );
return -1;