Exit if no sockets could be bound.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3838 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-11-09 01:23:07 +00:00
parent ca073f61d5
commit f05df77bb0

View File

@@ -512,6 +512,8 @@ loop(void)
struct descr *d; struct descr *d;
int ndescr; int ndescr;
ndescr = init_sockets(&d); ndescr = init_sockets(&d);
if(ndescr <= 0)
krb5_errx(context, 1, "No sockets!");
while(exit_flag == 0){ while(exit_flag == 0){
struct timeval tmout; struct timeval tmout;
struct fd_set fds; struct fd_set fds;