Changeset 9a2923d in mainline for uspace/app
- Timestamp:
- 2011-03-25T17:29:10Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d70765d, ea696998
- Parents:
- b8d453ec (diff), 889e8e3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- uspace/app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/init/init.c
rb8d453ec r9a2923d 288 288 289 289 spawn("/srv/clip"); 290 291 #ifdef CONFIG_DEVMAN_EARLY_LAUNCH 292 spawn("/srv/devman"); 293 #endif 290 294 291 295 /* … … 313 317 getterm("term/vc5", "/app/bdsh", false); 314 318 getterm("term/vc6", "/app/klog", false); 319 320 #ifndef CONFIG_DEVMAN_EARLY_LAUNCH 315 321 getterm("term/vc7", "/srv/devman", false); 316 322 #endif 323 317 324 return 0; 318 325 } -
uspace/app/klog/klog.c
rb8d453ec r9a2923d 44 44 #include <io/klog.h> 45 45 #include <sysinfo.h> 46 #include <fibril_synch.h> 46 47 47 48 #define NAME "klog" … … 54 55 static FILE *log; 55 56 57 /* Serialize the output a bit. This will not avoid messed-up log completely 58 but chances for are pretty high (experimentally confirmed). */ 59 static FIBRIL_MUTEX_INITIALIZE(log_mutex); 60 56 61 static void interrupt_received(ipc_callid_t callid, ipc_call_t *call) 57 62 { 63 fibril_mutex_lock(&log_mutex); 64 58 65 size_t klog_start = (size_t) IPC_GET_ARG1(*call); 59 66 size_t klog_len = (size_t) IPC_GET_ARG2(*call); … … 74 81 fsync(fileno(log)); 75 82 } 83 84 fibril_mutex_unlock(&log_mutex); 76 85 } 77 86
Note:
See TracChangeset
for help on using the changeset viewer.