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
d4eaf35d
...
d4eaf35d1315fdc836d8b6a258be01dd86353e85
authored
1999-10-06 20:58:00 +0000
by
Sean 'Shaleh' Perry
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed compilation problems I introduced yesterday
1 parent
043c0d97
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
7 deletions
ChangeLog
pop3d/pop3d.c
pop3d/pop3d.h
ChangeLog
View file @
d4eaf35
Sean 'Shaleh' Perry <shaleh@debian.org> Wed, 6 Oct 1999 13:55:42 -0700
* Cleanup some compilation issues
Sean 'Shaleh' Perry <shaleh@debian.org> Tue, 5 Oct 1999 23:06:33 -0700
* Added changelog.pl so we can have automated entries
...
...
pop3d/pop3d.c
View file @
d4eaf35
...
...
@@ -17,9 +17,10 @@
#include "pop3d.h"
/* save some line space */
typedef
struct
sockaddr_in
SA
;
/*
count of
number of child processes */
/* number of child processes */
unsigned
int
children
=
0
;
static
struct
option
long_options
[]
=
...
...
@@ -143,7 +144,7 @@ pop3_daemon_init (void)
pid
=
fork
();
if
(
pid
==
-
1
)
{
perror
(
errno
);
perror
(
"fork failed:"
);
exit
(
-
1
);
}
else
if
(
pid
>
0
)
...
...
@@ -156,7 +157,7 @@ pop3_daemon_init (void)
pid
=
fork
();
if
(
pid
==
-
1
)
{
perror
(
errno
);
perror
(
"fork failed:"
);
exit
(
-
1
);
}
else
if
(
pid
>
0
)
...
...
@@ -295,18 +296,20 @@ pop3_daemon (unsigned int maxchildren)
SA
server
,
client
;
pid_t
pid
;
int
listenfd
,
connfd
;
size_t
size
;
if
(
(
listenfd
=
socket
(
AF_INET
,
SOCK_STREAM
,
0
))
==
-
1
)
{
syslog
(
LOG_ERR
,
"socket: %s"
,
strerror
(
errno
));
exit
(
-
1
);
}
memset
(
&
server
,
0
,
sizeof
(
server
));
size
=
sizeof
(
server
);
memset
(
&
server
,
0
,
size
);
server
.
sin_family
=
AF_INET
;
server
.
sin_addr
.
s_addr
=
htonl
(
INADDR_ANY
);
server
.
sin_port
=
htonl
(
port
);
if
(
bind
(
listenfd
,
(
SA
*
)
&
server
,
size
of
(
server
)
)
==
-
1
)
if
(
bind
(
listenfd
,
(
SA
*
)
&
server
,
size
)
==
-
1
)
{
syslog
(
LOG_ERR
,
"bind: %s"
,
strerror
(
errno
));
exit
(
-
1
);
...
...
@@ -325,7 +328,7 @@ pop3_daemon (unsigned int maxchildren)
pause
();
continue
;
}
if
(
(
connfd
=
accept
(
listenfd
,
(
SA
*
)
&
client
,
sizeof
(
client
)
))
==
-
1
)
if
(
(
connfd
=
accept
(
listenfd
,
(
SA
*
)
&
client
,
&
size
))
==
-
1
)
{
syslog
(
LOG_ERR
,
"accept: %s"
,
strerror
(
errno
));
exit
(
-
1
);
...
...
pop3d/pop3d.h
View file @
d4eaf35
...
...
@@ -143,6 +143,7 @@ int ifile;
FILE
*
ofile
;
time_t
curr_time
;
char
*
md5shared
;
unsigned
int
children
;
int
pop3_dele
(
const
char
*
arg
);
int
pop3_list
(
const
char
*
arg
);
...
...
@@ -165,7 +166,7 @@ int pop3_lock (void);
int
pop3_unlock
(
void
);
int
pop3_getsizes
(
void
);
int
pop3_mainloop
(
int
infile
,
int
outfile
);
int
pop3_daemon
(
int
maxchildren
);
int
pop3_daemon
(
unsigned
int
maxchildren
);
void
pop3_usage
(
char
*
argv0
);
void
pop3_signal
(
int
signal
);
void
pop3_sigchld
(
int
signal
);
...
...
Please
register
or
sign in
to post a comment