Index: uspace/app/getterm/getterm.c
===================================================================
--- uspace/app/getterm/getterm.c	(revision a63966ddc781a6162855a3a60dedf48d5a09b9ca)
+++ uspace/app/getterm/getterm.c	(revision b22b0a94b341e922fce473e92cec4901af1e7086)
@@ -169,6 +169,7 @@
 	task_id_t id;
 	task_wait_t twait;
+	task_wait_set(&twait, TASK_WAIT_EXIT);
+	errno_t rc = task_spawnv(&id, &twait, cmd, (const char *const *) args);
 
-	errno_t rc = task_spawnv(&id, &twait, cmd, (const char *const *) args);
 	if (rc != EOK) {
 		printf("%s: Error spawning %s (%s)\n", APP_NAME, cmd,
@@ -176,8 +177,6 @@
 		return rc;
 	}
-
-	task_exit_t texit;
-	int retval;
-	rc = task_wait(&twait, &texit, &retval);
+	
+	rc = task_wait(&twait, NULL, NULL);
 	if (rc != EOK) {
 		printf("%s: Error waiting for %s (%s)\n", APP_NAME, cmd,
