Opened 15 years ago
Closed 15 years ago
#223 closed enhancement (fixed)
pt-server final "ok" message not showing via pipe
Reported by: | epruesse | Owned by: | devel |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | PT server | Version: | |
Keywords: | Cc: |
Description
The last message the PT-server prints when it is loading is:
ok, server is running.
This message indicates that it has successfully completed the loading stage and is now ready to accept connections.
However, if the PT-servers output stream is buffered (e.g. piping through "tee" or running from an external program), the message will not be rendered until sufficient error messages are printed or the PT-server exits.
I propose adding a fflush (maybe even on stable?) to have this message appear immediately in all cases.
Index: PROBE/PT_main.cxx =================================================================== --- PROBE/PT_main.cxx (revision 6417) +++ PROBE/PT_main.cxx (working copy) @@ -373,6 +373,7 @@ // all ok -> main "loop" printf("ok, server is running.\n"); + fflush(stdout); aisc_accept_calls(so); aisc_server_shutdown_and_exit(so, EXIT_SUCCESS); // never returns }
Change History (1)
comment:1 Changed 15 years ago by westram
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
impl by [6418] + [6419]