Allowed printing diagnostic messages (either from system processes or the

kernel) to the log driver. The log driver forwards such output to the TTY.

Changed driver_task() not to send a reply if the return value is EDONTREPLY.
This commit is contained in:
Jorrit Herder
2005-07-21 18:29:52 +00:00
parent da9b8e45f9
commit 09830fc33e
6 changed files with 227 additions and 43 deletions
+7 -5
View File
@@ -128,11 +128,13 @@ struct driver *dp; /* Device dependent entry points. */
(*dp->dr_cleanup)();
/* Finally, prepare and send the reply message. */
mess.m_type = TASK_REPLY;
mess.REP_PROC_NR = proc_nr;
mess.REP_STATUS = r; /* # of bytes transferred or error code */
send(device_caller, &mess); /* send reply to caller */
if (r != EDONTREPLY) {
mess.m_type = TASK_REPLY;
mess.REP_PROC_NR = proc_nr;
/* Status is # of bytes transferred or error code. */
mess.REP_STATUS = r;
send(device_caller, &mess);
}
}
}