Author: ed
Date: Tue May 26 18:55:03 2009
New Revision: 192834
URL: http://svn.freebsd.org/changeset/base/192834

Log:
  Vendor import of ee 1.4.4.

Added:
  vendor/ee/dist/Changes
Modified:
  vendor/ee/dist/ee.c
  vendor/ee/dist/new_curse.c

Added: vendor/ee/dist/Changes
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ vendor/ee/dist/Changes      Tue May 26 18:55:03 2009        (r192834)
@@ -0,0 +1,15 @@
+version 1.4.4 (8/17/2001)
+- added code to check if the parent process has died, and if so to exit 
+  gracefully
+
+version 1.4.3 (6/25/2001)
+- modified create.make and new_curse.c to allow defining TERMCAP file 
+  location (since some distributions move the file)
+- source directory now has version number attached to directory name
+
+version 1.4.2 (1/19/2001)
+- change to create.make script to add unistd.h to files to search for 
+  select() declaration
+- change to new_curse.c for proper raw mode operation
+
+

Modified: vendor/ee/dist/ee.c
==============================================================================
--- vendor/ee/dist/ee.c Tue May 26 18:53:44 2009        (r192833)
+++ vendor/ee/dist/ee.c Tue May 26 18:55:03 2009        (r192834)
@@ -49,7 +49,7 @@
  |     proprietary information which is protected by
  |     copyright.  All rights are reserved.
  |
- |     $Header: /home/hugh/sources/old_ae/RCS/ee.c,v 1.96 1998/07/14 05:02:30 
hugh Exp $
+ |     $Header: /home/hugh/sources/old_ae/RCS/ee.c,v 1.97 2001/08/17 23:14:05 
hugh Exp $
  |
  */
 
@@ -62,7 +62,7 @@ char *ee_long_notice[] = {
        "copyright.  All rights are reserved."
        };
 
-char *version = "@(#) ee, version 1.4.1  $Revision: 1.96 $";
+char *version = "@(#) ee, version 1.4.1  $Revision: 1.97 $";
 
 #ifdef NCURSE
 #include "new_curse.h"
@@ -550,6 +550,7 @@ int argc;
 char *argv[];
 {
        int counter;
+       pid_t parent_pid;
 
        for (counter = 1; counter < 24; counter++)
                signal(counter, SIG_IGN);
@@ -606,13 +607,30 @@ char *argv[];
 
        clear_com_win = TRUE;
 
+       counter = 0;
+
        while(edit) 
        {
                wrefresh(text_win);
                in = wgetch(text_win);
                if (in == -1)
                        exit(0);
-
+               /*
+                |      The above check used to work to detect if the parent 
+                |      process died, but now it seems we need a more 
+                |      sophisticated check.
+                */
+               if (counter > 50)
+               {
+                       parent_pid = getppid();
+                       if (parent_pid == 1)
+                               edit_abort(1);
+                       else
+                               counter = 0;
+               }
+               else
+                       counter++;
+               
                resize_check();
 
                if (clear_com_win)

Modified: vendor/ee/dist/new_curse.c
==============================================================================
--- vendor/ee/dist/new_curse.c  Tue May 26 18:53:44 2009        (r192833)
+++ vendor/ee/dist/new_curse.c  Tue May 26 18:55:03 2009        (r192834)
@@ -37,7 +37,7 @@
  |     Copyright (c) 1986, 1987, 1988, 1991, 1992, 1993, 1994, 1995 Hugh Mahon
  |     All are rights reserved.
  |
- |     $Header: /home/hugh/sources/old_ae/RCS/new_curse.c,v 1.52 2001/06/28 
05:39:42 hugh Exp $
+ |     $Header: /home/hugh/sources/old_ae/RCS/new_curse.c,v 1.52 2001/06/28 
05:39:42 hugh Exp hugh $
  |
  */
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to