Changeset 2651dc5 in mainline for uspace/app/nav/panel.c
- Timestamp:
- 2021-10-20T22:22:04Z (2 years ago)
- Children:
- 966a27d3
- Parents:
- 08d5f8b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/nav/panel.c
r08d5f8b r2651dc5 1079 1079 int retval; 1080 1080 errno_t rc; 1081 ui_t *ui; 1081 1082 1082 1083 /* It's not a directory */ … … 1085 1086 assert(entry->svc == 0); 1086 1087 1088 ui = ui_window_get_ui(panel->window); 1089 1090 /* Free up and clean console for the child task. */ 1091 rc = ui_suspend(ui); 1092 if (rc != EOK) 1093 return rc; 1094 1087 1095 rc = task_spawnl(&id, &wait, entry->name, entry->name, NULL); 1088 1096 if (rc != EOK) 1089 return rc;1097 goto error; 1090 1098 1091 1099 rc = task_wait(&wait, &texit, &retval); 1092 1100 if ((rc != EOK) || (texit != TASK_EXIT_NORMAL)) 1101 goto error; 1102 1103 /* Resume UI operation */ 1104 rc = ui_resume(ui); 1105 if (rc != EOK) 1093 1106 return rc; 1094 1107 1095 1108 (void) ui_paint(ui_window_get_ui(panel->window)); 1096 1109 return EOK; 1110 error: 1111 (void) ui_resume(ui); 1112 (void) ui_paint(ui_window_get_ui(panel->window)); 1113 return rc; 1097 1114 } 1098 1115
Note:
See TracChangeset
for help on using the changeset viewer.