Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
bbaf9dee
...
bbaf9deecb52b7a3d219dfbb63970a9b1286b08e
authored
2001-07-06 12:34:42 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
split imap4d_bye() into imap4d_bye() and imap4d_bye().
1 parent
0ca1c505
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
imap4d/bye.c
imap4d/bye.c
View file @
bbaf9de
...
...
@@ -21,6 +21,12 @@
int
imap4d_bye
(
int
reason
)
{
return
imap4d_bye0
(
reason
,
NULL
);
}
int
imap4d_bye0
(
int
reason
,
struct
imap4d_command
*
command
)
{
struct
passwd
*
pw
=
getpwuid
(
getuid
());
const
char
*
username
;
int
status
=
EXIT_FAILURE
;
...
...
@@ -41,7 +47,8 @@ imap4d_bye (int reason)
break
;
case
ERR_SIGNAL
:
util_out
(
RESP_BYE
,
"Quitting on signal"
);
if
(
ofile
)
util_out
(
RESP_BYE
,
"Quitting on signal"
);
syslog
(
LOG_ERR
,
"Quitting on signal"
);
break
;
...
...
@@ -72,6 +79,10 @@ imap4d_bye (int reason)
break
;
}
if
(
status
==
EXIT_SUCCESS
&&
command
)
util_finish
(
command
,
RESP_OK
,
"Completed"
);
closelog
();
exit
(
status
);
}
...
...
Please
register
or
sign in
to post a comment