X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fmain.c;h=83e60d8e0e252996094e9ccc61fb4f539abe954e;hb=8f1f912a7d2cb5777116056fc9d67aa2ea0c9467;hp=a71977daf9041e896599c5a1050c2525328414f3;hpb=4088b1e622cff0673f2859de5ee611da736bdba7;p=openocd.git diff --git a/src/main.c b/src/main.c index a71977daf9..83e60d8e0e 100644 --- a/src/main.c +++ b/src/main.c @@ -13,12 +13,9 @@ * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * along with this program. If not, see . * ***************************************************************************/ - #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -35,5 +32,9 @@ int main(int argc, char *argv[]) { + /* disable buffering otherwise piping to logs causes problems work */ + setvbuf(stdout, NULL, _IONBF, 0); + setvbuf(stderr, NULL, _IONBF, 0); + return openocd_main(argc, argv); }