Changeset 3203 for trunk/oscam.c
- Timestamp:
- 09/23/10 23:52:16 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oscam.c
r3181 r3203 25 25 char cs_tmpdir[200]={0x00}; 26 26 pthread_mutex_t gethostbyname_lock; 27 ECM_REQUEST *ecmtask; 27 28 28 #ifdef CS_ANTICASC 29 29 struct s_acasc ac_stat[CS_MAXPID]; … … 303 303 set_signal_handler(SIGHUP , 1, SIG_IGN); 304 304 305 set_signal_handler(SIGCHLD, 1, SIG_IGN); 306 set_signal_handler(SIGHUP , 1, SIG_IGN); 305 if (sig==SIGALRM) { 306 cs_debug("thread %d: SIGALRM, skipping", get_csidx()); 307 return; 308 } 309 307 310 if (sig && (sig!=SIGQUIT)) 308 311 cs_log("exit with signal %d", sig); 312 309 313 switch(client[cs_idx].typ) 310 314 { … … 326 330 break; 327 331 case 'h': 328 case 's': { 329 int i; 330 for (i=1; i<CS_MAXPID; i++) 331 if (client[i].pid) 332 kill(client[i].pid, SIGQUIT); 333 } 332 case 's': 334 333 #ifdef CS_LED 335 334 cs_switch_led(LED1B, LED_OFF); … … 355 354 client[i].pid=0; 356 355 if(client[i].ecmtask) free(client[i].ecmtask); 357 if(client[i].e cmtask) free(client[i].emmcache);356 if(client[i].emmcache) free(client[i].emmcache); 358 357 if(client[i].req) free(client[i].req); 359 358 if(client[i].prefix) free(client[i].prefix); … … 369 368 for (i=0; i<CS_MAXPID; i++) { 370 369 if(client[i].ecmtask) free(client[i].ecmtask); 371 if(client[i].e cmtask) free(client[i].emmcache);370 if(client[i].emmcache) free(client[i].emmcache); 372 371 if(client[i].req) free(client[i].req); 373 372 if(client[i].prefix) free(client[i].prefix);
Note:
See TracChangeset
for help on using the changeset viewer.