From 9e45335d39cf93967bd69060a18081afb4a5f9ba Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 16 May 1999 15:23:07 +0000 Subject: 1999-05-16 Roland McGrath * portinfo.c (parse_task): Fail with appropriate error message if the fetched task is MACH_PORT_NULL. --- utils/portinfo.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils') diff --git a/utils/portinfo.c b/utils/portinfo.c index 7b7a35af..be30cbe1 100644 --- a/utils/portinfo.c +++ b/utils/portinfo.c @@ -100,6 +100,8 @@ parse_task (char *arg) err = proc_pid2task (proc, pid, &task); if (err) error (11, err, "%s", arg); + else if (task == MACH_PORT_NULL) + error (11, 0, "%s: Process %d is dead and has no task", arg, (int) pid); return task; } -- cgit v1.2.3