From b1c198c148f0b92b7099e39fd6b44afb16e0f212 Mon Sep 17 00:00:00 2001
From: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Date: Wed, 14 Apr 2010 00:47:34 +0200
Subject: win32: ash: do not set PPID

---
 shell/ash.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'shell')

diff --git a/shell/ash.c b/shell/ash.c
index 64e64d95e..758fdfde4 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -13249,7 +13249,8 @@ init(void)
 			}
 		}
 
-		setvar("PPID", utoa(getppid()), 0);
+		if (!ENABLE_PLATFORM_MINGW32)
+			setvar("PPID", utoa(getppid()), 0);
 
 		p = lookupvar("PWD");
 		if (p)
-- 
cgit v1.2.3-55-g6feb