summaryrefslogtreecommitdiff
path: root/pop3e.c
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@sunilnimmagadda.com>2014-04-10 18:15:20 +0500
committerSunil Nimmagadda <sunil@sunilnimmagadda.com>2014-04-10 18:15:20 +0500
commite7d2df8c667cf50c80631c1faa1a7e98ffb55de6 (patch)
tree360590d9d9dc441111a68f68118e0f5b259b1b6c /pop3e.c
parent90be9f6501860a22f694ef1659bef4d9182154e8 (diff)
Since we now waitpid on WAIT_ANY, pop3_main needed return pid.
Diffstat (limited to 'pop3e.c')
-rw-r--r--pop3e.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pop3e.c b/pop3e.c
index cb6f017..728df72 100644
--- a/pop3e.c
+++ b/pop3e.c
@@ -47,7 +47,7 @@ static void sig_handler(int, short, void *);
struct imsgev iev_pop3d;
void *ssl_ctx;
-pid_t
+void
pop3_main(int pair[2], struct passwd *pw)
{
extern struct session_tree sessions;
@@ -59,7 +59,7 @@ pop3_main(int pair[2], struct passwd *pw)
fatal("pop3e: fork");
if (pid > 0)
- return (pid);
+ return;
close(pair[0]);
setproctitle("pop3 engine");