[Asterisk-Users] asterisk -rx not working well
Dr. Rich Murphey
Rich at WhiteOakLabs.com
Sun Jun 20 15:30:17 MST 2004
> -----Original Message-----
> From: asterisk-users-admin at lists.digium.com [mailto:asterisk-users-
> admin at lists.digium.com] On Behalf Of Steven Critchfield
> Sent: Saturday, June 19, 2004 3:17 PM
> To: asterisk-users at lists.digium.com
> 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
More information about the asterisk-users
mailing list