> In pthserv.c, the str_echo function (line 54) expects a file descriptor.
> However, when it is called on line 156, the address of the file
> descriptor is what gets passed. The simple fix (inlined below) is to
> pass the value. Alternatvely, one could modify the str_echo function to
> expect a pointer, although that does add an unnecessary dereference.
Thanks for pointing that out. Merged.
--Subrata
>
> Signed-off-by: Craig Meier <[EMAIL PROTECTED]>
>
> diff -u testcases/kernel/sched/clisrv/pthserv.c.old
> testcases/kernel/sched/clisrv/pthserv.c
> --- testcases/kernel/sched/clisrv/pthserv.c.old 2008-02-06
> 11:39:36.000000000 -0800
> +++ testcases/kernel/sched/clisrv/pthserv.c 2008-02-06
> 11:40:23.000000000 -0800
> @@ -153,7 +153,7 @@
> }
> else /* create thread to handle client request */
> {
> - if (pthread_create(&th, &newattr, (void *)&new_thread,
> (void *)&newsockfd))
> + if (pthread_create(&th, &newattr, (void *)&new_thread,
> (void *)newsockfd))
> printf("failure to create thread\n");
> #ifndef _LINUX
> yield();
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Ltp-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ltp-list
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list