From 37eb6418b6b7cdf6751d615ccf1b27fd1fd33df5 Mon Sep 17 00:00:00 2001 From: CHILAKA AVINASH Date: Mon, 25 Jan 2021 00:48:50 +0530 Subject: [PATCH] late submission --- minix/servers/pm/forkexit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/minix/servers/pm/forkexit.c b/minix/servers/pm/forkexit.c index 218fff5e0..683942443 100644 --- a/minix/servers/pm/forkexit.c +++ b/minix/servers/pm/forkexit.c @@ -204,7 +204,7 @@ int do_srv_fork() /* Find a free pid for the child and put it in the table. */ new_pid = get_free_pid(); rmc->mp_pid = new_pid; /* assign pid to child */ - +printf("Minix: PID %d created\n", new_pid); memset(&m, 0, sizeof(m)); m.m_type = VFS_PM_SRV_FORK; m.VFS_PM_ENDPT = rmc->mp_endpoint; @@ -242,6 +242,7 @@ int do_exit() } else { exit_proc(mp, m_in.m_lc_pm_exit.status, FALSE /*dump_core*/); + printf("Minix: PID %d exited\n", mp->mp_pid); } return(SUSPEND); /* can't communicate from beyond the grave */ }