Skip to content
Snippets Groups Projects
Commit 3c7b138f authored by rswindell's avatar rswindell
Browse files

Define and support EX_NOLOG mode flag to sbbs_t::external(), if set,

intercepted output to stderr won't be logged.
parent b977f8d5
No related branches found
No related tags found
No related merge requests found
......@@ -814,6 +814,7 @@ enum { /* readmail and delmailidx which types */
#define EX_CHKTIME XTRN_CHKTIME /* Check time left */
#define EX_NOECHO XTRN_NOECHO /* Don't echo stdin to stdout */
#define EX_STDIO (EX_STDIN|EX_STDOUT)
#define EX_NOLOG (1<<30) /* Don't log intercepted stdio */
#define EX_CONIO (1<<31) /* Intercept Windows console I/O (doorway) */
#if defined(__unix__)
......
......@@ -1911,7 +1911,7 @@ int sbbs_t::external(const char* cmdline, long mode, const char* startup_dir)
timeout.tv_sec=0;
timeout.tv_usec=1000;
}
if(i)
if(i && !(mode&EX_NOLOG))
lprintf(LOG_NOTICE,"%.*s",i,buf); /* lprintf mangles i? */
/* Eat stderr if mode is EX_BIN */
......
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