kopia lustrzana https://gitlab.com/sane-project/backends
Debug mode: close all sockets once we have accepted a connection.
rodzic
f3756baa4a
commit
26ffc6a211
|
@ -2515,10 +2515,7 @@ run_standalone (int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (run_mode == SANED_RUN_DEBUG)
|
if (run_mode == SANED_RUN_DEBUG)
|
||||||
{
|
break; /* We have the only connection we're going to handle */
|
||||||
handle_connection (fd);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
handle_client (fd);
|
handle_client (fd);
|
||||||
}
|
}
|
||||||
|
@ -2531,6 +2528,9 @@ run_standalone (int argc, char **argv)
|
||||||
close (fdp->fd);
|
close (fdp->fd);
|
||||||
|
|
||||||
free (fds);
|
free (fds);
|
||||||
|
|
||||||
|
if ((run_mode == SANED_RUN_DEBUG) && (fd > 0))
|
||||||
|
handle_connection (fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue