diff options
author | Ed Schouten <ed@FreeBSD.org> | 2009-05-26 18:55:03 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2009-05-26 18:55:03 +0000 |
commit | babc280da418134baff98fc8271e2b05b514fa96 (patch) | |
tree | ba68bd4f30a49d18833264b642a26010abe0d0fb | |
parent | 76bf094ad4bd686af5ca20431350379b0881babd (diff) |
Vendor import of ee 1.4.4.vendor/ee/1.4.4
Notes
Notes:
svn path=/vendor/ee/dist/; revision=192834
svn path=/vendor/ee/1.4.4/; revision=192835; tag=vendor/ee/1.4.4
-rw-r--r-- | Changes | 15 | ||||
-rwxr-xr-x | ee.c | 24 | ||||
-rw-r--r-- | new_curse.c | 2 |
3 files changed, 37 insertions, 4 deletions
diff --git a/Changes b/Changes new file mode 100644 index 000000000000..b86ea3033599 --- /dev/null +++ b/Changes @@ -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 + + @@ -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) diff --git a/new_curse.c b/new_curse.c index 6672f1acb5e8..2ab6c5d32f5b 100644 --- a/new_curse.c +++ b/new_curse.c @@ -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 $ | */ |