When we receive a PROC_EVENT message from PM, exit nicely; avoids

annoying graceful RS timeout on unmount.
This commit is contained in:
Ben Gras 2009-04-27 12:02:31 +00:00
parent e5209d51f1
commit 60e7602aad

View File

@ -67,12 +67,13 @@ PUBLIC int main(void)
who_e = fs_m_in.m_source; who_e = fs_m_in.m_source;
if (who_e != FS_PROC_NR) { if (who_e != FS_PROC_NR) {
if (who_e == 0) { if (who_e == 0) {
/* if(fs_m_in.m_type == PROC_EVENT) {
printf("MFS(%d): MSG from PM\n", SELF_E); /* A signal from PM: this means we're getting killed.
error = 1; * Exit nicely.
fs_m_out.m_type = error; */
reply(who_e, &fs_m_out); fs_sync();
*/ exit(0);
}
} }
continue; continue;
} }