[torqueusers] qmgr truncates output in batch mode
Garrick Staples
garrick at usc.edu
Thu Jun 11 13:05:54 MDT 2009
On Thu, Jun 11, 2009 at 04:58:30PM +0200, Jan Nilsson alleged:
> Hi,
>
> We have experienced some problems using "qmgr -c <cmd>" in scripts.
> The output seemed truncated or the qmgr was crashing prematurely.
>
> When analyzing it in depth - we found that it seems to be connected to
> "qmgr" using the readline() utility.
>
> My colleague found that adding a fflush(NULL) before exiting solved the
> problem.
Why at that exact location? There are several ways out of the code. Why not
just stick it inside of clean_up_and_exit()?
--
Garrick Staples, GNU/Linux HPCC SysAdmin
University of Southern California
The pro-disease movement: http://www.jennymccarthybodycount.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.supercluster.org/pipermail/torqueusers/attachments/20090611/37adfa49/attachment.bin
More information about the torqueusers
mailing list