mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 15:48:48 -04:00
Vendor import of ee 1.4.4.
This commit is contained in:
parent
76bf094ad4
commit
babc280da4
3 changed files with 37 additions and 4 deletions
15
Changes
Normal file
15
Changes
Normal file
|
|
@ -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
|
||||
|
||||
|
||||
24
ee.c
24
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)
|
||||
|
|
|
|||
|
|
@ -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 $
|
||||
|
|
||||
*/
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue