> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:asterisk-users-
> [EMAIL PROTECTED] On Behalf Of Steven Critchfield
> Sent: Saturday, June 19, 2004 3:17 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [Asterisk-Users] asterisk -rx not working well
> 
> On Sat, 2004-06-19 at 07:05, Sam Bingner wrote:
> > It's exiting before the output finishes printing, it's a known bug and a
> > timing issue.... There's a patch I put that's a hack to put in a timeout
> > for exit, you should be able to find it on bugs.digium.com
> 
> Instead of timing the exit, why don't you just flush the STDOUT and
> STDERR file descriptors? Seems this could be done before exit no matter
> what the reason was.

It's possible for exit() to occur before the output of the command has been
written.  Many OSes will call flush() on exit(), but it's implementation
dependent.  I suspect we wouldn't need a flush(), and that the cause is more
likely that the output isn't being written, but I'm not certain.

Rich



_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to