]> OCCT Git - occt-wok.git/commitdiff
OCC20850 umake command do not work on SunOS10
authorcascade <cascade@opencascade.com>
Fri, 13 Feb 2009 18:33:58 +0000 (18:33 +0000)
committercascade <cascade@opencascade.com>
Fri, 13 Feb 2009 18:33:58 +0000 (18:33 +0000)
src/WOKUnix/WOKUnix_ASyncStatus.cxx
src/WOKUnix/WOKUnix_AdmFile.cxx
src/WOKUnix/WOKUnix_FileBuffer.cxx
src/WOKUnix/WOKUnix_Path.cxx
src/WOKUnix/WOKUnix_PathIterator.cxx
src/WOKUnix/WOKUnix_Process.cxx
src/WOKUnix/WOKUnix_ProcessManager.cxx
src/WOKUnix/WOKUnix_RemoteShell.cxx
src/WOKUnix/WOKUnix_Shell.cxx
src/WOKUnix/WOKUnix_SyncStatus.cxx

index f04bb684deead79629b8e8244a2ef9b73846ea9f..b0b3ce55c30e7d35e83cd4837e2ce0c8415f3a90 100755 (executable)
@@ -36,7 +36,7 @@ void WOKUnix_ASyncStatus::EndCmd(const Handle(WOKUnix_Shell)& ashell)
    ashell->WOKUnix_Process::Send(abuf);
    
 #ifdef WOK_VERBOSE
-   VerboseMsg("WOK_PROCESS") << "WOKUnix_ASyncStatus::EndCmd" << "Accumulating Status" << endm;
+   VerboseMsg()("WOK_PROCESS") << "WOKUnix_ASyncStatus::EndCmd" << "Accumulating Status" << endm;
 #endif
    return;
 }
@@ -63,7 +63,7 @@ void WOKUnix_ASyncStatus::Sync(const Handle(WOKUnix_Shell)& ashell)
   mystatus = ashell->SyncAndStatus();
   
 #ifdef WOK_VERBOSE
-  VerboseMsg("WOK_PROCESS") << "WOKUnix_ASyncStatus::Sync" << "GotStatus : " << mystatus << endm;
+  VerboseMsg()("WOK_PROCESS") << "WOKUnix_ASyncStatus::Sync" << "GotStatus : " << mystatus << endm;
 #endif
 
   Reset(ashell);
@@ -80,7 +80,7 @@ void WOKUnix_ASyncStatus::Reset(const Handle(WOKUnix_Shell)& ashell)
    static Handle(TCollection_HAsciiString) abuf = new TCollection_HAsciiString("\nset wok_csh_status = 0\n");
    ashell->WOKUnix_Process::Send(abuf);
 #ifdef WOK_VERBOSE
-   VerboseMsg("WOK_PROCESS") << "WOKUnix_ASyncStatus::Reset" << "Reset Shell" << endm;
+   VerboseMsg()("WOK_PROCESS") << "WOKUnix_ASyncStatus::Reset" << "Reset Shell" << endm;
 #endif
    return;
 }
index 11ee7cc0b82a3e6f7603500daa91c5241a686ff5..20c35397340a8d4b49005cbfafc842dd2e8e132c 100755 (executable)
@@ -53,13 +53,13 @@ Handle(TColStd_HSequenceOfHAsciiString) WOKUnix_AdmFile::Read()
 
   if(Exists() == Standard_False) 
     {
-      ErrorMsg << "WOKUnix_AdmFile::Read" <<  "File : " << Name() << "does not exists" << endm;
+      ErrorMsg() << "WOKUnix_AdmFile::Read" <<  "File : " << Name() << "does not exists" << endm;
       Standard_ProgramError::Raise("WOKUnix_AdmFile::Read : File dos not exists");
     }
   
   if(KindOfFile() != OSD_FILE)  
     {
-      ErrorMsg << "WOKUnix_AdmFile::Read" <<  "File : " << Name() << " is not a plain file" << endm;
+      ErrorMsg() << "WOKUnix_AdmFile::Read" <<  "File : " << Name() << " is not a plain file" << endm;
       Standard_ProgramError::Raise("WOKUnix_AdmFile::Read");
     }
 
index 761f371ddaf1ad3df6957e80c8c4cfa0970ffc93..cfca51e1f19b93e809983766025928c19c213571 100755 (executable)
@@ -90,7 +90,7 @@ void WOKUnix_FileBuffer::Acquit(const Standard_Integer astatus, const WOKUnix_FD
   Standard_Integer nbtoread = GetFDescr().GetNbToRead();
 #endif  // __GNUC__
 #if defined( WOK_VERBOSE ) && !defined( __GNUC__ )
-  VerboseMsg("WOK_PROCESS") << "WOKUnix_FileBuffer::Acquit"
+  VerboseMsg()("WOK_PROCESS") << "WOKUnix_FileBuffer::Acquit"
                             << "There is " << nbtoread << " bytes to read on process output" << endm;
 #endif
 #ifndef __GNUC__
@@ -113,7 +113,7 @@ void WOKUnix_FileBuffer::Dump()
   Standard_Integer maxsize;
   
 #ifdef WOK_VERBOSE
-  VerboseMsg("WOK_PROCESS") << "WOKUnix_FileBuffer::Dump"
+  VerboseMsg()("WOK_PROCESS") << "WOKUnix_FileBuffer::Dump"
     << "Dumping" << endm;
 #endif
 
@@ -136,7 +136,7 @@ void WOKUnix_FileBuffer::Dump()
     }
   WOKUnix_Buffer::Write(mybuffer);
 #ifdef WOK_VERBOSE
-  VerboseMsg("WOK_PROCESS") << "WOKUnix_FileBuffer::Dump"
+  VerboseMsg()("WOK_PROCESS") << "WOKUnix_FileBuffer::Dump"
     << "Dumped" << endm;
 #endif
 
index 53b6d9f094d1e9cffb48ddfc6ddc795295ac7ab4..8c51de04a0fac59ac6e01ed291c6f5b0ebd722fc 100755 (executable)
@@ -150,7 +150,7 @@ Standard_Boolean WOKUnix_Path::CreateDirectory(const Standard_Boolean CreatePare
       // l'inode existe deja
       if(!IsDirectory())
        {
-         ErrorMsg << "WOKUnix_Path::CreateDirectory" 
+         ErrorMsg() << "WOKUnix_Path::CreateDirectory" 
            << mypath << " exists and is not a directory" << endm; 
          return Standard_False;
        }
@@ -163,16 +163,16 @@ Standard_Boolean WOKUnix_Path::CreateDirectory(const Standard_Boolean CreatePare
     {
       if(!parent->IsDirectory())
        {
-         ErrorMsg << "WOKUnix_Path::CreateDirectory" 
+         ErrorMsg() << "WOKUnix_Path::CreateDirectory" 
            << "Parent Directory " << parent->Name() << " exists and is not a directory" << endm; 
          return Standard_False;
        }
 
      if(mkdir(mypath->ToCString(), 0777))
        {
-         ErrorMsg << "WOKUnix_Path::CreateDirectory" 
+         ErrorMsg() << "WOKUnix_Path::CreateDirectory" 
            << WOKUnix::LastSystemMessage() << endm;
-         ErrorMsg << "WOKUnix_Path::CreateDirectory" 
+         ErrorMsg() << "WOKUnix_Path::CreateDirectory" 
            << "Could not create directory : " << mypath << endm;
          return Standard_False;
        }
@@ -181,7 +181,7 @@ Standard_Boolean WOKUnix_Path::CreateDirectory(const Standard_Boolean CreatePare
   
   if(CreateParents == Standard_False)
     {
-      ErrorMsg << "WOKUnix_Path::CreateDirectory" 
+      ErrorMsg() << "WOKUnix_Path::CreateDirectory" 
        << "Parent Directory " << parent->Name() << " does not exist" << endm;
       return Standard_False;
     }
@@ -212,7 +212,7 @@ Standard_Boolean WOKUnix_Path::CreateFile(const Standard_Boolean CreateParents)
       // l'inode existe deja
       if(!IsFile())
        {
-         ErrorMsg << "WOKUnix_Path::CreateFile" 
+         ErrorMsg() << "WOKUnix_Path::CreateFile" 
            << mypath << " exists and is not a file" << endm; 
          return Standard_False;
        }
@@ -221,7 +221,7 @@ Standard_Boolean WOKUnix_Path::CreateFile(const Standard_Boolean CreateParents)
 
   //if(apath.IsValid(mypath->ToCString()) == Standard_False) 
   //  {
-  //    ErrorMsg << "WOKUnix_Path::CreateFile" 
+  //    ErrorMsg() << "WOKUnix_Path::CreateFile" 
   //          << mypath << " is invalid" << endm; 
   //    return Standard_False;
   //  }
@@ -232,7 +232,7 @@ Standard_Boolean WOKUnix_Path::CreateFile(const Standard_Boolean CreateParents)
     {
       if(!parent->IsDirectory())
        {
-         ErrorMsg << "WOKUnix_Path::CreateFile" 
+         ErrorMsg() << "WOKUnix_Path::CreateFile" 
            << "Parent Directory " << parent->Name() << " exists and is not a directory" << endm; 
          return Standard_False;
        }
@@ -241,8 +241,8 @@ Standard_Boolean WOKUnix_Path::CreateFile(const Standard_Boolean CreateParents)
       
       if((fd=creat(mypath->ToCString(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH)) < 0)
        {
-         ErrorMsg << "WOKUnix_Path::CreateFile" << WOKUnix::LastSystemMessage() << endm;
-         ErrorMsg << "WOKUnix_Path::CreateFile" << "Could not create " << mypath << endm; 
+         ErrorMsg() << "WOKUnix_Path::CreateFile" << WOKUnix::LastSystemMessage() << endm;
+         ErrorMsg() << "WOKUnix_Path::CreateFile" << "Could not create " << mypath << endm; 
          return Standard_False;
        }
       close(fd);
@@ -250,7 +250,7 @@ Standard_Boolean WOKUnix_Path::CreateFile(const Standard_Boolean CreateParents)
     }
   else if(CreateParents == Standard_False)
     {
-      ErrorMsg << "WOKUnix_Path::CreateFile" 
+      ErrorMsg() << "WOKUnix_Path::CreateFile" 
        << "Parent Directory " 
          << parent->Name()
            << " does not exist" << endm;
@@ -310,16 +310,16 @@ Standard_Boolean  WOKUnix_Path::CreateSymLinkTo(const Handle(WOKUnix_Path)& apat
 {
   if(apath.IsNull() || Name().IsNull())
     {
-      ErrorMsg << "WOKUnix_Path::CreateSymLinkTo" 
+      ErrorMsg() << "WOKUnix_Path::CreateSymLinkTo" 
        << "Unable to create symlink : Invalid arguments" << endm;
       return Standard_False;
     }
 
   if(symlink(apath->Name()->ToCString(), Name()->ToCString()))
     {
-      ErrorMsg << "WOKUnix_Path::CreateSymLinkTo" 
+      ErrorMsg() << "WOKUnix_Path::CreateSymLinkTo" 
        << WOKUnix::LastSystemMessage() << endm;
-      ErrorMsg << "WOKUnix_Path::CreateSymLinkTo" 
+      ErrorMsg() << "WOKUnix_Path::CreateSymLinkTo" 
        << "Unable to create " << Name() << " -> " << apath->Name() << endm;
       return Standard_False;      
     }
@@ -334,7 +334,7 @@ Standard_Boolean WOKUnix_Path::RemoveDirectory(const Standard_Boolean RemoveChil
 {
   if(Name().IsNull())
     {
-      ErrorMsg << "WOKUnix_Path::RemoveDirectory" 
+      ErrorMsg() << "WOKUnix_Path::RemoveDirectory" 
        << "Invalid null name" << endm;
       return Standard_False;
     }
@@ -343,9 +343,9 @@ Standard_Boolean WOKUnix_Path::RemoveDirectory(const Standard_Boolean RemoveChil
     {
       if(rmdir(Name()->ToCString()) != 0)
        {
-         ErrorMsg << "WOKUnix_Path::RemoveDirectory" 
+         ErrorMsg() << "WOKUnix_Path::RemoveDirectory" 
            << WOKUnix::LastSystemMessage() << endm;
-         ErrorMsg << "WOKUnix_Path::RemoveDirectory" 
+         ErrorMsg() << "WOKUnix_Path::RemoveDirectory" 
            << "Could not remove : " << Name() << endm;
          return Standard_False;
        }
@@ -365,15 +365,15 @@ Standard_Boolean WOKUnix_Path::RemoveFile()
 {
   if(Name().IsNull())
     {
-      ErrorMsg << "WOKUnix_Path::RemoveFile" 
+      ErrorMsg() << "WOKUnix_Path::RemoveFile" 
        << "Invalid null name" << endm;
       return Standard_False;
     }
   if(unlink(Name()->ToCString()))
     {
-      ErrorMsg << "WOKUnix_Path::RemoveFile" 
+      ErrorMsg() << "WOKUnix_Path::RemoveFile" 
        << WOKUnix::LastSystemMessage() << endm;
-      ErrorMsg << "WOKUnix_Path::RemoveFile" 
+      ErrorMsg() << "WOKUnix_Path::RemoveFile" 
        << "Failed to Remove : " << Name() << endm;
       return Standard_False;
     }
@@ -388,9 +388,9 @@ Standard_Boolean WOKUnix_Path::MoveTo(const Handle(WOKUnix_Path)& adestpath)
 {
   if(rename(mypath->ToCString(), adestpath->Name()->ToCString()))
     {
-      ErrorMsg << "WOKUnix_Path::MoveTo" 
+      ErrorMsg() << "WOKUnix_Path::MoveTo" 
        << WOKUnix::LastSystemMessage() << endm;
-      ErrorMsg << "WOKUnix_Path::MoveTo" 
+      ErrorMsg() << "WOKUnix_Path::MoveTo" 
        << "Failed to Move " << mypath->ToCString() << " to " << adestpath->Name()->ToCString()<< endm;
       return Standard_False;
     }
@@ -420,7 +420,7 @@ Handle(WOKUnix_Path) WOKUnix_Path::ReducedPath() const
 
       if(realpath(mypath->ToCString(), abuffer) == NULL)
        {
-         ErrorMsg << "WOKUnix_Path::ReducedPath" << WOKUnix::LastSystemMessage() << endm;
+         ErrorMsg() << "WOKUnix_Path::ReducedPath" << WOKUnix::LastSystemMessage() << endm;
          return this;
        }
 
@@ -473,14 +473,14 @@ Standard_Boolean WOKUnix_Path::IsSameFile(const Handle(WOKUnix_Path)& another) c
 
   if((fd1 = open(Name()->ToCString(), O_RDONLY, 0)) < 0)
     {
-      ErrorMsg << "WOKUnix_Path::IsSameFile" << WOKUnix::LastSystemMessage() << endm;
-      ErrorMsg << "WOKUnix_Path::IsSameFile" << "Can't open " << Name() << endm;
+      ErrorMsg() << "WOKUnix_Path::IsSameFile" << WOKUnix::LastSystemMessage() << endm;
+      ErrorMsg() << "WOKUnix_Path::IsSameFile" << "Can't open " << Name() << endm;
       return Standard_False;
     }
   if((fd2 = open(another->Name()->ToCString(), O_RDONLY, 0)) < 0)
     {
-      ErrorMsg << "WOKUnix_Path::IsSameFile" << WOKUnix::LastSystemMessage() << endm;
-      ErrorMsg << "WOKUnix_Path::IsSameFile" << "Can't open " << another->Name() << endm;
+      ErrorMsg() << "WOKUnix_Path::IsSameFile" << WOKUnix::LastSystemMessage() << endm;
+      ErrorMsg() << "WOKUnix_Path::IsSameFile" << "Can't open " << another->Name() << endm;
       return Standard_False;
     }
 
@@ -520,7 +520,7 @@ Standard_Boolean WOKUnix_Path::GetStats()
   if(!Exists()) return Standard_False;
   else if(stat(mypath->ToCString(), &mystats))
     {
-      ErrorMsg << "WOKUnix_Path::GetStats" 
+      ErrorMsg() << "WOKUnix_Path::GetStats" 
        << WOKUnix::LastSystemMessage() << endm;
       return Standard_False;
     }
index ab77c5467848e3b8aca60bdaea123f4433a7be59..330bdd6c468831db7f694664ee61ceb9b4a7fb49 100755 (executable)
@@ -25,9 +25,9 @@ WOKUnix_PathIterator::WOKUnix_PathIterator(const Handle(WOKUnix_Path)& apath, co
 
   if(!adir) 
     {
-      ErrorMsg << "WOKUnix_PathIterator::WOKUnix_PathIterator" 
+      ErrorMsg() << "WOKUnix_PathIterator::WOKUnix_PathIterator" 
        << WOKUnix::LastSystemMessage() << endm;
-      ErrorMsg << "WOKUnix_PathIterator::WOKUnix_PathIterator" 
+      ErrorMsg() << "WOKUnix_PathIterator::WOKUnix_PathIterator" 
        << "Could not open directory " << apath->Name() << endm;
       mymore = Standard_False;
       return;
index fa649c794e1c4287641bf564a31bc3ffd3323830..a5dd0b9204097414b2eb16dd567e93412b3f8be0 100755 (executable)
@@ -205,7 +205,7 @@ void WOKUnix_Process::Launch()
        }
 
       WOK_TRACE {
-       VerboseMsg("WOK_PROCESS") << "WOKUnix_Process::Launch" << "Process " << mychildpid << " launched" << endm;
+       VerboseMsg()("WOK_PROCESS") << "WOKUnix_Process::Launch" << "Process " << mychildpid << " launched" << endm;
       }
 
       mylaunched = Standard_True;
@@ -305,13 +305,13 @@ void WOKUnix_Process::Send(const Handle(TCollection_HAsciiString)& astring)
   Standard_CString ptr = astring->ToCString();
 
   WOK_TRACE {
-    VerboseMsg("WOK_PROCESS") << "WOKUnix_Process::Send" 
+    VerboseMsg()("WOK_PROCESS") << "WOKUnix_Process::Send" 
                              << "Writing : " << astring->ToCString() << "to file id : " << myinput.FileNo() << endm;
   }
 
   if(!IsLaunched())
     {
-      ErrorMsg << "WOKUnix_Process::Send" << "Trying to perform send to dead or unlaunched process" << endm;
+      ErrorMsg() << "WOKUnix_Process::Send" << "Trying to perform send to dead or unlaunched process" << endm;
       Standard_ProgramError::Raise("WOKUnix_Process::Send");
     }
 
@@ -329,7 +329,7 @@ void WOKUnix_Process::Send(const Handle(TCollection_HAsciiString)& astring)
              // il faut laisser le temps au temps 
              
              WOK_TRACE {
-               VerboseMsg("WOK_PROCESS") << "WOKUnix_Process::Send" 
+               VerboseMsg()("WOK_PROCESS") << "WOKUnix_Process::Send" 
                                          << "Write failed : Acquit output" << endm;
              }
 
index 7267ccba4e214019b31d9495c50a3ead649dc171..5cafdf696ea173e0799e2bb181756bcbb00106bb 100755 (executable)
@@ -55,7 +55,7 @@ WOKUnix_SequenceOfProcess  &WOKUnix_ProcessManager::Processes()
 void WOKUnix_ProcessManager::InteruptHandler()
 {
 #ifdef WOK_VERBOSE
-  VerboseMsg("WOK_PROCESS") << "WOKUnix_ProcessManager::InteruptHandler" 
+  VerboseMsg()("WOK_PROCESS") << "WOKUnix_ProcessManager::InteruptHandler" 
                            << "Interupt Signal Launched !!" << endm;
 #endif
 
@@ -76,7 +76,7 @@ void WOKUnix_ProcessManager::ChildDeathHandler()
 
   if(pid == CriticPid)
     {
-      ErrorMsg << "WOKUnix_ProcessManager::ChildDeathHandler"
+      ErrorMsg() << "WOKUnix_ProcessManager::ChildDeathHandler"
               << "Child " << pid << " died" << endm;
       Standard_ProgramError::Raise("unexpected child shell death");
     }
@@ -86,7 +86,7 @@ void WOKUnix_ProcessManager::ChildDeathHandler()
       if(Processes().Value(ind)->Pid() == pid)
        {
 #ifdef WOK_VERBOSE
-         VerboseMsg("WOK_PROCESS") << "WOKUnix_ProcessManager::ChildDeathHandler"
+         VerboseMsg()("WOK_PROCESS") << "WOKUnix_ProcessManager::ChildDeathHandler"
                                    << "Process " << pid << " died" << endm;
 #endif
          Processes().Value(ind)->Kill();
@@ -104,7 +104,7 @@ void WOKUnix_ProcessManager::ChildDeathHandler()
 void WOKUnix_ProcessManager::PipeHandler()
 {
 #ifdef WOK_VERBOSE
-  VerboseMsg("WOK_PROCESS") << "WOKUnix_ProcessManager::PipeHandler" << "SIGPIPE received" << endm;
+  VerboseMsg()("WOK_PROCESS") << "WOKUnix_ProcessManager::PipeHandler" << "SIGPIPE received" << endm;
 #endif
   return;
 }
@@ -116,13 +116,13 @@ void WOKUnix_ProcessManager::PipeHandler()
 void WOKUnix_ProcessManager::KillAll()
 {
 #ifdef WOK_VERBOSE
-  VerboseMsg("WOK_PROCESS") << "WOKUnix_ProcessManager::PipeHandler" << "Killing all sub proccesses" << endm;
+  VerboseMsg()("WOK_PROCESS") << "WOKUnix_ProcessManager::PipeHandler" << "Killing all sub proccesses" << endm;
 #endif
 
   for(Standard_Integer ind = 1; ind <= Processes().Length(); ind ++)
     {
 #ifdef WOK_VERBOSE
-      VerboseMsg("WOK_PROCESS") << "WOKUnix_ProcessManager::KillAll"
+      VerboseMsg()("WOK_PROCESS") << "WOKUnix_ProcessManager::KillAll"
                                << "Process " << Processes().Value(ind)->Pid() << " requested to die (interrupt)" << endm;
 #endif
       Processes().Value(ind)->Kill();
@@ -177,14 +177,14 @@ void WOKUnix_ProcessManager::WaitProcess(const Handle(WOKUnix_Process)& aprocess
 
   
 #ifdef WOK_VERBOSE
-  VerboseMsg("WOK_PROCESS") << "WOKUnix_ProcessManager::WaitProcess"
+  VerboseMsg()("WOK_PROCESS") << "WOKUnix_ProcessManager::WaitProcess"
                            << "Waiting for process " << aprocess->Pid() << " to die" << endm;
 #endif
  
   pid = waitpid(aprocess->Pid(), &status, 0);
 
 #ifdef WOK_VERBOSE
-  VerboseMsg("WOK_PROCESS") << "WOKUnix_ProcessManager::WaitProcess"
+  VerboseMsg()("WOK_PROCESS") << "WOKUnix_ProcessManager::WaitProcess"
                            << "Process " << aprocess->Pid() << " died" << endm;
 #endif
 
index ce80f6b3bed50a08b0589333ef71aed9964591e5..22235dea100d52ebad7fdd22278077a8598e58a6 100755 (executable)
@@ -76,7 +76,7 @@
 
   if(!IsLaunched())
     {
-      ErrorMsg << "WOKUnix_RemoteShell::SyncAndStatus()" << "Trying to perform sync to dead or unlaunched process" << endm;
+      ErrorMsg() << "WOKUnix_RemoteShell::SyncAndStatus()" << "Trying to perform sync to dead or unlaunched process" << endm;
       Standard_ProgramError::Raise("WOKUnix_RemoteShell::SyncAndStatus()");
     }
 
index 2e044506292b7a422ac99db8df5a4264e7db11e3..ab3373b16cf2d8bdb80ddae8ffb191846bdec9c7 100755 (executable)
@@ -156,7 +156,7 @@ void WOKUnix_Shell::Echo(const Handle(TCollection_HAsciiString)& astr) const
 {
   if(myecho)
     {
-      WOKTools_Info shellinfo = InfoMsg;
+      WOKTools_Info shellinfo = InfoMsg();
       shellinfo.Init();
       shellinfo.DontPrintHeader();
       shellinfo.DontPrintContext();
@@ -279,7 +279,7 @@ void WOKUnix_Shell::SetASynchronous()
   WOKUnix_ProcessManager::SetCriticalPid(Pid());
 
   WOK_TRACE {
-    VerboseMsg("WOK_PROCESS") << "WOKUnix_Shell::SyncAndStatus"
+    VerboseMsg()("WOK_PROCESS") << "WOKUnix_Shell::SyncAndStatus"
                              << "Entering SyncAndStatus" << endm;
   }
 
@@ -305,21 +305,21 @@ void WOKUnix_Shell::SetASynchronous()
       Select(fdmax, s_timeout, readfds); // process output Select
       
 #ifdef WOK_VERBOSE
-      if(VerboseMsg("WOK_PROCESS").IsSet()) {
+      if(VerboseMsg()("WOK_PROCESS").IsSet()) {
        Standard_Integer i;
 
        if(p_timeout) {
-         VerboseMsg("WOK_PROCESS") << "WOKUnix_Shell::SyncAndStatus"
+         VerboseMsg()("WOK_PROCESS") << "WOKUnix_Shell::SyncAndStatus"
            << "Entering select : timeout : " << (const int) s_timeout.tv_sec << "s " << (const int) s_timeout.tv_usec << "ms" << endm;
        } else {
-         VerboseMsg("WOK_PROCESS") << "WOKUnix_Shell::SyncAndStatus"
+         VerboseMsg()("WOK_PROCESS") << "WOKUnix_Shell::SyncAndStatus"
            << "Entering select : infinite wait" << endm;
        }
        
 
        for(i=0; i<fdmax; i++) {
          if(FD_ISSET(i,&readfds)) {
-           VerboseMsg("WOK_PROCESS") << "WOKUnix_Shell::SyncAndStatus" << "FD " << (const int) i << " is setted" << endm;
+           VerboseMsg()("WOK_PROCESS") << "WOKUnix_Shell::SyncAndStatus" << "FD " << (const int) i << " is setted" << endm;
          }
        }
       }
@@ -351,7 +351,7 @@ void WOKUnix_Shell::SetASynchronous()
        }
 
 #ifdef WOK_VERBOSE
-      VerboseMsg("WOK_PROCESS") << "WOKUnix_Shell::SyncAndStatus"
+      VerboseMsg()("WOK_PROCESS") << "WOKUnix_Shell::SyncAndStatus"
        << "Aquit output" << endm;
 #endif
 
index 100a49a2209d1ea17f56a2e7624c1a44eaf09092..d00f94620af390268acced51a99f1b6b5d35b076 100755 (executable)
@@ -45,7 +45,7 @@ void WOKUnix_SyncStatus::EndCmd(const Handle(WOKUnix_Shell)& ashell)
   mystatus = ashell->SyncAndStatus();
 
 #ifdef WOK_VERBOSE
-  VerboseMsg("WOK_PROCESS") << "WOKUnix_SyncStatus::EndCmd" << "Command ended with status : " << mystatus << endm;
+  VerboseMsg()("WOK_PROCESS") << "WOKUnix_SyncStatus::EndCmd" << "Command ended with status : " << mystatus << endm;
 #endif
 }