$Log$
+ Revision 614.28 2004/02/13 20:51:13 error
+ * Reset screen attributes before fork() so that external programs do the
+ right thing
+
Revision 614.27 2004/02/12 04:16:38 ajc
* Support for PLAIN logins in IMAP (need to test!)
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
case 2:
default: /* allow 2+ modes */
e_ex_code = 1; /* start with a failed exit code */
- editor_pid = fork();
- cksum = file_checksum(filename);
screen_reset();
sttybbs(SB_RESTORE);
+ editor_pid = fork();
+ cksum = file_checksum(filename);
if (editor_pid == 0) {
char tmp[SIZ];
void subshell(void)
{
int a, b;
+
+ screen_reset();
+ sttybbs(SB_RESTORE);
a = fork();
if (a == 0) {
- screen_reset();
- sttybbs(SB_RESTORE);
signal(SIGINT, SIG_DFL);
signal(SIGQUIT, SIG_DFL);
execlp(getenv("SHELL"), getenv("SHELL"), NULL);