Fixed socket cleanup

This commit is contained in:
Michiel Broek 2004-08-25 18:32:26 +00:00
parent fc8a84633c
commit 82db9a609f
2 changed files with 5 additions and 1 deletions

View File

@ -55,6 +55,10 @@ v0.61.4 11-Aug-2004
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.
mbnewusr:
During program exit, it tried to remove the wrong socket to
mbtask.
mbuser: mbuser:
Fixed permissions. Fixed permissions.

View File

@ -621,7 +621,7 @@ void Fast_Bye(int onsig)
socket_shutdown(mypid); socket_shutdown(mypid);
temp = calloc(PATH_MAX, sizeof(char)); temp = calloc(PATH_MAX, sizeof(char));
sprintf(temp, "%s/tmp/mbsebbs%d", getenv("MBSE_ROOT"), getpid()); sprintf(temp, "%s/tmp/mbnewusr%d", getenv("MBSE_ROOT"), getpid());
unlink(temp); unlink(temp);
free(temp); free(temp);