From 36da52025e22bf9ecde7aec8c897b0617c9f8ed8 Mon Sep 17 00:00:00 2001 From: Andre Lanrezac Date: Fri, 5 Jul 2024 15:38:21 +0200 Subject: [PATCH] Fix when IMDlogname use stdout --- protocol/src/imd_interface.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/protocol/src/imd_interface.c b/protocol/src/imd_interface.c index 0f5993c..7abc2bf 100644 --- a/protocol/src/imd_interface.c +++ b/protocol/src/imd_interface.c @@ -792,6 +792,10 @@ FILE *IIMD_init( const char *hostname, imd_int32 *mode, imd_int32 *IMD { IMDlog = stderr; } + else if (strcmp(IMDlogname_, "stdout") == 0) + { + IMDlog = stdout; + } else { IMDlog = fopen ( IMDlogname_, "w");