[PC-BSD Commits] r1195 - pcbsd/trunk/SoundDetect

svn at pcbsd.org svn at pcbsd.org
Wed Jan 16 16:07:06 PST 2008


Author: carlos
Date: 2008-01-16 16:07:06 -0800 (Wed, 16 Jan 2008)
New Revision: 1195

Modified:
   pcbsd/trunk/SoundDetect/sound_detect.c
Log:
added /tmp/snd_detect_failed file with update server not reachable

Modified: pcbsd/trunk/SoundDetect/sound_detect.c
===================================================================
--- pcbsd/trunk/SoundDetect/sound_detect.c	2008-01-16 23:47:45 UTC (rev 1194)
+++ pcbsd/trunk/SoundDetect/sound_detect.c	2008-01-17 00:07:06 UTC (rev 1195)
@@ -145,6 +145,7 @@
    
   CURL *curl_handle;
   static  char *new_soundcards_xml="/tmp/temp.soundcards.xml";
+  static char* snd_detect_failed="/tmp/snd_detect_failed";
   FILE* bodyfile ;
 
 
@@ -176,6 +177,9 @@
 }  
     fclose(bodyfile);
     curl_easy_cleanup(curl_handle);
+    bodyfile = fopen(snd_detect_failed,"w");
+    fprintf(bodyfile,"Reason : Could not connect to update server");
+    fclose(bodyfile);
 
 return -1 ;
 }



More information about the Commits mailing list