diff src/ushare.c @ 126:5dcaf3785ebe

fix process terminate problem. add dynamic Content-Length header.
author Naoya OYAMA <naoya.oyama@gmail.com>
date Sun, 03 Oct 2010 21:55:37 +0900
parents e413158cae13
children 20442921bff5
line wrap: on
line diff
--- a/src/ushare.c	Sun Oct 03 11:35:19 2010 +0900
+++ b/src/ushare.c	Sun Oct 03 21:55:37 2010 +0900
@@ -641,7 +641,8 @@
   return (init_upnp (ut));
 }
 
-static void
+//static void
+void
 UPnPBreak (int s __attribute__ ((unused)))
 {
   ushare_signal_exit ();
@@ -890,13 +891,10 @@
 
   build_metadata_list (ut);
 
-  log_verbose ("uShare mutex lock.\n");
   /* Let main sleep until it's time to die... */
   pthread_mutex_lock (&ut->termination_mutex);
-  log_verbose ("uShare cond wait.\n");
   pthread_cond_wait (&ut->termination_cond, &ut->termination_mutex);
   pthread_mutex_unlock (&ut->termination_mutex);
-  log_verbose ("uShare finish.\n");
 
   if (ut->use_telnet)
     ctrl_telnet_stop ();
@@ -905,7 +903,7 @@
   ushare_free (ut);
   finish_iconv ();
 
-  log_verbose ("dlna_start() finish\n");
   /* it should never be executed */
   return NULL;
 }
+