Mercurial > emacs
comparison lib-src/ntlib.c @ 22296:b58a79fe0af2
(getppid): Look for EM_PARENT_PROCESS_ID.
author | Geoff Voelker <voelker@cs.washington.edu> |
---|---|
date | Sat, 30 May 1998 23:37:12 +0000 |
parents | 4a0cf10c12f2 |
children | 1fd32e8a2fad |
comparison
equal
deleted
inserted
replaced
22295:b2ceb0b98995 | 22296:b58a79fe0af2 |
---|---|
56 getppid(void) | 56 getppid(void) |
57 { | 57 { |
58 char *ppid; | 58 char *ppid; |
59 DWORD result; | 59 DWORD result; |
60 | 60 |
61 ppid = getenv ("__PARENT_PROCESS_ID"); | 61 ppid = getenv ("EM_PARENT_PROCESS_ID"); |
62 if (!ppid) | 62 if (!ppid) |
63 { | 63 { |
64 printf("no pid.\n"); | 64 printf("no pid.\n"); |
65 return 0; | 65 return 0; |
66 } | 66 } |