[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lib-src/ntlib.c
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/lib-src/ntlib.c |
Date: |
Fri, 04 Apr 2003 01:21:37 -0500 |
Index: emacs/lib-src/ntlib.c
diff -c emacs/lib-src/ntlib.c:1.8 emacs/lib-src/ntlib.c:1.9
*** emacs/lib-src/ntlib.c:1.8 Tue Aug 22 17:22:20 2000
--- emacs/lib-src/ntlib.c Tue Feb 4 09:06:56 2003
***************
*** 59,78 ****
DWORD result;
ppid = getenv ("EM_PARENT_PROCESS_ID");
! if (!ppid)
{
printf("no pid.\n");
return 0;
! }
! else
{
getppid_ppid = atoi (ppid);
}
! if (!getppid_parent)
{
getppid_parent = OpenProcess (SYNCHRONIZE, FALSE, atoi(ppid));
! if (!getppid_parent)
{
printf ("Failed to open handle to parent process: %d\n",
GetLastError());
--- 59,78 ----
DWORD result;
ppid = getenv ("EM_PARENT_PROCESS_ID");
! if (!ppid)
{
printf("no pid.\n");
return 0;
! }
! else
{
getppid_ppid = atoi (ppid);
}
! if (!getppid_parent)
{
getppid_parent = OpenProcess (SYNCHRONIZE, FALSE, atoi(ppid));
! if (!getppid_parent)
{
printf ("Failed to open handle to parent process: %d\n",
GetLastError());
***************
*** 81,87 ****
}
result = WaitForSingleObject (getppid_parent, 0);
! switch (result)
{
case WAIT_TIMEOUT:
/* The parent is still alive. */
--- 81,87 ----
}
result = WaitForSingleObject (getppid_parent, 0);
! switch (result)
{
case WAIT_TIMEOUT:
/* The parent is still alive. */
***************
*** 188,194 ****
}
/* Place a wrapper around the MSVC version of ctime. It returns NULL
! on network directories, so we handle that case here.
(Ulrich Leodolter, 1/11/95). */
char *
sys_ctime (const time_t *t)
--- 188,194 ----
}
/* Place a wrapper around the MSVC version of ctime. It returns NULL
! on network directories, so we handle that case here.
(Ulrich Leodolter, 1/11/95). */
char *
sys_ctime (const time_t *t)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/lib-src/ntlib.c,
Miles Bader <=