pthread_create: Arg is'nt submitted to function
Asked by
kaiszy
Hi!
I have written a small programm that uses pthread. A piece of code:
main.c
args = calloc(
args->socket = i;
if(pthread_
errorHandling;
}
void *thread_reader(void *arg[]) {
struct threadArgs *args;
int sock;
if(args == NULL) {
printf("No args, no fun\n");
return NULL;
}
}
If i compile the programm on debian etch amd64 everything works fine. If i compile the programm on Ubuntu 8.10 intrepid i get the message: "No args, no fun".
On both system i have installed the latest updates.
Thanks for your afford!
Best regards,
Kai.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- kaiszy
- Solved:
- Last query:
- Last reply:
To post a message you must log in.