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
1227187a
...
1227187a6782ab166c6947a3163e4e72255a3133
authored
2003-01-31 15:03:27 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(pop3d_sigchld): Don't try to print to stdout if SIGPIPE received.
1 parent
ef08c4fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
pop3d/signal.c
pop3d/signal.c
View file @
1227187
...
...
@@ -39,6 +39,8 @@ pop3d_sigchld (int signo)
RETSIGTYPE
pop3d_signal
(
int
signo
)
{
int
code
;
syslog
(
LOG_CRIT
,
_
(
"got signal %s"
),
strsignal
(
signo
));
/* Master process. */
...
...
@@ -48,7 +50,18 @@ pop3d_signal (int signo)
exit
(
EXIT_FAILURE
);
}
if
(
signo
==
SIGALRM
)
pop3d_abquit
(
ERR_TIMEOUT
);
pop3d_abquit
(
ERR_SIGNAL
);
switch
(
signo
)
{
case
SIGALRM
:
code
=
ERR_TIMEOUT
;
break
;
case
SIGPIPE
:
code
=
ERR_NO_OFILE
;
break
;
default:
code
=
ERR_SIGNAL
;
}
pop3d_abquit
(
code
);
}
...
...
Please
register
or
sign in
to post a comment