X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fmain.c;h=a437b6b4c94fcd01bd794fcbb249ca8558170553;hb=d2033997871f8561d1406550c12508461f63de48;hp=a71977daf9041e896599c5a1050c2525328414f3;hpb=4088b1e622cff0673f2859de5ee611da736bdba7;p=openocd.git diff --git a/src/main.c b/src/main.c index a71977daf9..a437b6b4c9 100644 --- a/src/main.c +++ b/src/main.c @@ -13,16 +13,14 @@ * 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 #include "openocd.h" +#include "helper/system.h" /* This is the main entry for developer PC hosted OpenOCD. * @@ -35,5 +33,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); }