Fixed Quick_Byte calling die()
This commit is contained in:
parent
82db9a609f
commit
ae80983a2a
@ -54,6 +54,8 @@ v0.61.4 11-Aug-2004
|
|||||||
Added extra fflush in quickscan mail.
|
Added extra fflush in quickscan mail.
|
||||||
When calling the external editor, the fromaddress if available
|
When calling the external editor, the fromaddress if available
|
||||||
is given to joe.
|
is given to joe.
|
||||||
|
In Quick_Bye reset all signal handlers to prevent that die() is
|
||||||
|
called in case something goes wrong during Quick_Bye.
|
||||||
|
|
||||||
mbnewusr:
|
mbnewusr:
|
||||||
During program exit, it tried to remove the wrong socket to
|
During program exit, it tried to remove the wrong socket to
|
||||||
|
@ -139,6 +139,7 @@ void Good_Bye(int onsig)
|
|||||||
void Quick_Bye(int onsig)
|
void Quick_Bye(int onsig)
|
||||||
{
|
{
|
||||||
char *temp;
|
char *temp;
|
||||||
|
int i;
|
||||||
|
|
||||||
temp = calloc(PATH_MAX, sizeof(char));
|
temp = calloc(PATH_MAX, sizeof(char));
|
||||||
Syslog('+', "Quick_Bye");
|
Syslog('+', "Quick_Bye");
|
||||||
@ -147,12 +148,17 @@ void Quick_Bye(int onsig)
|
|||||||
unlink(temp);
|
unlink(temp);
|
||||||
free(temp);
|
free(temp);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Prevent that we call die() if something goes wrong next
|
||||||
|
*/
|
||||||
|
for (i = 0; i < NSIG; i++)
|
||||||
|
signal(i, SIG_DFL);
|
||||||
|
|
||||||
colour(LIGHTGRAY, BLACK);
|
colour(LIGHTGRAY, BLACK);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
fflush(stdin);
|
fflush(stdin);
|
||||||
sleep(3);
|
sleep(3);
|
||||||
|
|
||||||
Free_Language();
|
|
||||||
free(pTTY);
|
free(pTTY);
|
||||||
if (StartTime)
|
if (StartTime)
|
||||||
free(StartTime);
|
free(StartTime);
|
||||||
|
Reference in New Issue
Block a user