changed one more status setting
authorRainer Gerhards <rgerhards@adiscon.com>
Wed, 11 Mar 2009 18:54:30 +0000 (19:54 +0100)
committerRainer Gerhards <rgerhards@adiscon.com>
Wed, 11 Mar 2009 18:54:30 +0000 (19:54 +0100)
user feedback indicates it now looks like it is working ;)
still some more work needed for a "good" solution

tools/omfile.c

index 4bef5db..28bdcf2 100644 (file)
@@ -562,7 +562,7 @@ static rsRetVal writeFile(uchar **ppString, unsigned iMsgOpts, instanceData *pDa
         */
        if(pData->bDynamicName) {
                if(prepareDynFile(pData, ppString[1], iMsgOpts) != 0)
-                       ABORT_FINALIZE(RS_RET_ERR);
+                       ABORT_FINALIZE(RS_RET_SUSPENDED); // TODO: different state? conditional based on what went wrong? 2009-03-11
        } else if(pData->fd == -1) {
                prepareFile(pData, pData->f_fname);
        }