Changes in uspace/app/init/init.c [991f645:0485135] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/init/init.c
r991f645 r0485135 185 185 186 186 /* Wait for the input device to be ready */ 187 dev map_handle_t handle;187 dev_handle_t handle; 188 188 rc = devmap_device_get_handle(dev, &handle, IPC_FLAG_BLOCKING); 189 189 if (rc != EOK) { … … 200 200 } 201 201 202 static void getterm(const char *dev, const char *app , bool wmsg)202 static void getterm(const char *dev, const char *app) 203 203 { 204 204 char term[DEVMAP_NAME_MAXLEN]; … … 210 210 211 211 /* Wait for the terminal device to be ready */ 212 dev map_handle_t handle;212 dev_handle_t handle; 213 213 rc = devmap_device_get_handle(dev, &handle, IPC_FLAG_BLOCKING); 214 214 if (rc != EOK) { … … 218 218 } 219 219 220 if (wmsg) { 221 rc = task_spawnl(NULL, APP_GETTERM, APP_GETTERM, "-w", term, 222 app, NULL); 223 if (rc != EOK) { 224 printf("%s: Error spawning %s -w %s %s (%s)\n", NAME, 225 APP_GETTERM, term, app, str_error(rc)); 226 } 227 } else { 228 rc = task_spawnl(NULL, APP_GETTERM, APP_GETTERM, term, app, 229 NULL); 230 if (rc != EOK) { 231 printf("%s: Error spawning %s %s %s (%s)\n", NAME, 232 APP_GETTERM, term, app, str_error(rc)); 233 } 220 rc = task_spawnl(NULL, APP_GETTERM, APP_GETTERM, term, app, NULL); 221 if (rc != EOK) { 222 printf("%s: Error spawning %s %s %s (%s)\n", NAME, 223 APP_GETTERM, term, app, str_error(rc)); 234 224 } 235 225 } … … 305 295 #endif 306 296 307 getterm("term/vc0", "/app/bdsh" , true);308 getterm("term/vc1", "/app/bdsh" , false);309 getterm("term/vc2", "/app/bdsh" , false);310 getterm("term/vc3", "/app/bdsh" , false);311 getterm("term/vc4", "/app/bdsh" , false);312 getterm("term/vc5", "/app/bdsh" , false);313 getterm("term/vc6", "/app/klog" , false);297 getterm("term/vc0", "/app/bdsh"); 298 getterm("term/vc1", "/app/bdsh"); 299 getterm("term/vc2", "/app/bdsh"); 300 getterm("term/vc3", "/app/bdsh"); 301 getterm("term/vc4", "/app/bdsh"); 302 getterm("term/vc5", "/app/bdsh"); 303 getterm("term/vc6", "/app/klog"); 314 304 315 305 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.