printf() by kernel and servers now send messages to an array of processes,
OUTPUT_PROCS_ARRAY in <minix/config.h>, in that order, terminated by NONE.
log no longer forwards messages to tty itself. This leads to less funny
loops and more robust debug-message handling. Also the list of
processes receiving messages can easily be changed around or disabled by
editing the array (e.g. disable it by changing the array to { NONE }.).
This commit is contained in:
@@ -139,7 +139,10 @@ int c; /* character to append */
|
||||
kmess.km_size += 1;
|
||||
kmess.km_next = (kmess.km_next + 1) % KMESS_BUF_SIZE;
|
||||
} else {
|
||||
send_sig(OUTPUT_PROC_NR, SIGKMESS);
|
||||
int p, outprocs[] = OUTPUT_PROCS_ARRAY;
|
||||
for(p = 0; outprocs[p] != NONE; p++) {
|
||||
send_sig(outprocs[p], SIGKMESS);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user