Changeset 3432 for trunk/module-serial.c
- Timestamp:
- 10/10/10 09:48:55 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-serial.c
r3422 r3432 903 903 if ((!p + 1) || (!(p + 1)[0])) return NULL; 904 904 if (!oscam_ser_parse_url(p + 1)) return NULL; 905 int i=cs_fork(0);906 cl ient[i].typ='c';907 cl ient[i].ip=0;908 cl ient[i].ctyp=ctyp;909 pthread_create(&cl ient[i].thread, NULL, oscam_ser_fork, (void *) p + 1); //FIXME value of p does not survive thread910 pthread_detach(cl ient[i].thread);905 struct s_client *cl=cs_fork(0); 906 cl->typ='c'; 907 cl->ip=0; 908 cl->ctyp=ctyp; 909 pthread_create(&cl->thread, NULL, oscam_ser_fork, (void *) p + 1); //FIXME value of p does not survive thread 910 pthread_detach(cl->thread); 911 911 } 912 912 … … 914 914 if (!oscam_ser_parse_url(sdevice)) return NULL; 915 915 916 int i=cs_fork(0);917 cl ient[i].typ='c';918 cl ient[i].ip=0;919 cl ient[i].ctyp=ctyp;920 pthread_create(&cl ient[i].thread, NULL, oscam_ser_fork, (void *) sdevice);921 pthread_detach(cl ient[i].thread);916 struct s_client *cl=cs_fork(0); 917 cl->typ='c'; 918 cl->ip=0; 919 cl->ctyp=ctyp; 920 pthread_create(&cl->thread, NULL, oscam_ser_fork, (void *) sdevice); 921 pthread_detach(cl->thread); 922 922 return NULL; 923 923 }
Note:
See TracChangeset
for help on using the changeset viewer.