Changeset 3684 for branches/2.2/lib-src/ntlib.c
- Timestamp:
- 04/10/05 21:31:27 (4 years ago)
- Files:
-
- branches/2.2/lib-src/ntlib.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2.2/lib-src/ntlib.c
r3104 r3684 60 60 61 61 ppid = getenv ("EM_PARENT_PROCESS_ID"); 62 if (!ppid) 62 if (!ppid) 63 63 { 64 64 printf("no pid.\n"); 65 65 return 0; 66 } 67 else 66 } 67 else 68 68 { 69 69 getppid_ppid = atoi (ppid); 70 70 } 71 71 72 if (!getppid_parent) 72 if (!getppid_parent) 73 73 { 74 74 getppid_parent = OpenProcess (SYNCHRONIZE, FALSE, atoi(ppid)); 75 if (!getppid_parent) 75 if (!getppid_parent) 76 76 { 77 77 printf ("Failed to open handle to parent process: %d\n", … … 82 82 83 83 result = WaitForSingleObject (getppid_parent, 0); 84 switch (result) 84 switch (result) 85 85 { 86 86 case WAIT_TIMEOUT: … … 189 189 190 190 /* Place a wrapper around the MSVC version of ctime. It returns NULL 191 on network directories, so we handle that case here. 191 on network directories, so we handle that case here. 192 192 (Ulrich Leodolter, 1/11/95). */ 193 193 char * … … 209 209 return _chdir (path); 210 210 } 211 212 /* arch-tag: 7b63fb83-70ee-4124-8822-54e53e5d0773 213 (do not change this comment) */
