Skip to content
Snippets Groups Projects
Commit ce475f79 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Don't log error opening DOSXTRN.RET when terminating an external

If we detect a client disconnection and terminate DOSXTRN.EXE, don't try to open DOSXTRN.RET and log an error when the file doesn't exist (as would be expected).
parent 3160fa3b
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -834,11 +834,11 @@ int sbbs_t::external(const char* cmdline, long mode, const char* startup_dir)
if(retval==STILL_ACTIVE) {
lprintf(LOG_INFO,"Terminating process from line %d", __LINE__);
TerminateProcess(process_info.hProcess, GetLastError());
processTerminated=TerminateProcess(process_info.hProcess, GetLastError());
}
// Get return value
if(!native) {
if(!native && !processTerminated) {
SAFEPRINTF(path, "%sDOSXTRN.RET", cfg.node_dir);
FILE* fp=fopen(path,"r");
if(fp == NULL) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment