summaryrefslogtreecommitdiffstats
path: root/tools/schedsim/shell/shared/main_semobtain.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/schedsim/shell/shared/main_semobtain.c')
-rw-r--r--tools/schedsim/shell/shared/main_semobtain.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/schedsim/shell/shared/main_semobtain.c b/tools/schedsim/shell/shared/main_semobtain.c
index dc02f9aec9..83ac8d31cd 100644
--- a/tools/schedsim/shell/shared/main_semobtain.c
+++ b/tools/schedsim/shell/shared/main_semobtain.c
@@ -36,6 +36,8 @@ int rtems_shell_main_semaphore_obtain(
/* XXX for now, do not support polling */
+ CHECK_RTEMS_IS_UP();
+
if (argc != 3) {
fprintf( stderr, "%s: Usage name|id timeout\n", argv[0] );
return -1;