Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit c18c8267 authored by rswindell's avatar rswindell

Restore cooked TTY mode *before* prompting for the user to hit ENTER when

run with the '-p' or '-!' options. This resolve the issue of (on Win32)
having to enter *twice* to close the program in this mode.
parent 1e05fe26
......@@ -334,6 +334,7 @@ static int do_bail(int code)
lprintf(LOG_ERR,"!WSACleanup ERROR %d",ERROR_VALUE);
#endif
cooked_tty();
if(pause_on_exit || (code && pause_on_error)) {
fprintf(statfp,"\nHit enter to continue...");
getchar();
......@@ -341,7 +342,6 @@ static int do_bail(int code)
if(code)
fprintf(statfp,"\nReturning error code: %d\n",code);
cooked_tty();
return(code);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment