Hi pgadmin team.<br /><br />I got a problem with PgAgent on Windows :<br />When I create a batch step, the status is
alwaysset to succeed, even if the batch doesn't work.<br /><br />I found this in the source code (job.cpp) :<br /><br
/>#ifdef__WIN32__<br /> // The Windows way<br /> HANDLE h_script;<br />
DWORDdwRead; <br /> char chBuf[4098];<br /> <br /> h_script =
win32_popen_r(filename.wc_str());<br/> [...]<br /> CloseHandle(h_script);<br />
<b>rc=1;</b><br/>#else<br /> // The *nix way.<br />[...]<br /><b>
rc=pclose(fp_script);<br/> rc = (unsigned char)(rc >> 8); // The exit code is in the top 8 bits<br />
rc = (signed char)rc;<br /></b><br />the return code seems to be always true on windows platform, as the CloseHandle
returncode is not used ?<br />Hope that'll help.<br /><br />Thank you.<br />