Index: uspace/app/bdsh/exec.c
===================================================================
--- uspace/app/bdsh/exec.c	(revision 7114d836ff84c10f98376e50246b4d5e34146131)
+++ uspace/app/bdsh/exec.c	(revision adb49f58f0f19858bac40da225e2394606a6d356)
@@ -113,4 +113,5 @@
 {
 	task_id_t tid;
+	task_exit_t texit;
 	char *tmp;
 	int retval;
@@ -127,7 +128,10 @@
 	}
 	
-	task_wait(tid, &retval);
-	if (retval != 0)
+	task_wait(tid, &texit, &retval);
+	if (texit != TASK_EXIT_NORMAL) {
+		printf("Command failed (unexpectedly terminated).\n");
+	} else if (retval != 0) {
 		printf("Command failed (return value %d).\n", retval);
+	}
 
 	return 0;
Index: uspace/app/getvc/getvc.c
===================================================================
--- uspace/app/getvc/getvc.c	(revision 7114d836ff84c10f98376e50246b4d5e34146131)
+++ uspace/app/getvc/getvc.c	(revision adb49f58f0f19858bac40da225e2394606a6d356)
@@ -74,4 +74,5 @@
 int main(int argc, char *argv[])
 {
+	task_exit_t texit;
 	int retval;
 
@@ -100,5 +101,5 @@
 	version_print(argv[1]);
 	task_id_t id = spawn(argv[2]);
-	task_wait(id, &retval);
+	task_wait(id, &texit, &retval);
 	
 	return 0;
