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 + + diff --git a/ee.c b/ee.c index 9a08dc43312c..584cdd6aef8a 100755 --- a/ee.c +++ b/ee.c @@ -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 $ | */