[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    icecream/daemon
From:       Stephan Kulow <coolo () kde ! org>
Date:       2006-09-02 19:08:58
Message-ID: 1157224138.540652.8266.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 580160 by coolo:

make it possible to track what .o file belongs to whtat ID


 M  +5 -3      workit.cpp  


--- trunk/icecream/daemon/workit.cpp #580159:580160
@@ -117,7 +117,9 @@
     int ret;
 
     char tmp_output[PATH_MAX];
-    if ( ( ret = dcc_make_tmpnam("icecc", ".o", tmp_output, 1 ) ) != 0 )
+    char prefix_output[PATH_MAX]; // I'm too lazy to calculate how many digits 2^64 is :)
+    sprintf( prefix_output, "icecc-%d", j.jobID() );
+    if ( ( ret = dcc_make_tmpnam(prefix_output, ".o", tmp_output, 1 ) ) != 0 )
         return ret;
 
     outfilename = tmp_output;
@@ -288,11 +290,11 @@
 
         struct timeval starttv;
         gettimeofday(&starttv, 0 );
- 
+
         for (;;) {
             Msg* msg  = client->get_msg(60);
 
-            if ( !msg || (msg->type != M_FILE_CHUNK && msg->type != M_END) ) 
+            if ( !msg || (msg->type != M_FILE_CHUNK && msg->type != M_END) )
               {
                 log_error() << "protocol error while reading preprocessed file\n";
                 delete msg;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic