From 4e8b5fc38766dc653bc503bb9d2cc56fc69240c4 Mon Sep 17 00:00:00 2001 From: Egor Duda Date: Thu, 13 Sep 2001 15:06:25 +0000 Subject: [PATCH] * dumper.cc (main): Properly recognize negative pids (used by w9x). --- winsup/utils/ChangeLog | 4 ++++ winsup/utils/dumper.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index d54e0050f..91ee38a8d 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,7 @@ +2001-09-13 Egor Duda + + * dumper.cc (main): Properly recognize negative pids (used by w9x). + 2001-09-09 Egor Duda * dumper.cc (main): Change command-line arguments format to be diff --git a/winsup/utils/dumper.cc b/winsup/utils/dumper.cc index ee4a9eabc..ab80433e4 100644 --- a/winsup/utils/dumper.cc +++ b/winsup/utils/dumper.cc @@ -806,7 +806,7 @@ main (int argc, char **argv) p++; else p = win32_name; - pid = atoi (*(argv + optind + 1)); + pid = strtoul (*(argv + optind + 1), NULL, 10); } else { -- 2.43.5