[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with kernel configuration: fork() function



Title: Message
Sorry about my uncompleted answer :-(
 
I get "Unable to run btsdp" and compiler options are
 
compilation options: -mlinux, ...
link options: -mcrislinux, ...
 
I have read something about a simple bug at http://mhonarc.axis.se/dev-etrax/msg01137.html
but I don´t know if that bug is relationated with my problem.
 
Thanks and sorry
 
----- Original Message -----
Sent: Monday, October 13, 2003 4:13 PM
Subject: RE: Problem with kernel configuration: fork() function

You still have to tell us what error you get? Doesn't it compile? Do you get "fork() failed\n"?
Do you get "Unable to run btsdp\n"? What are the flags to the compiler? etc etc... Please compare
with other programs that uses fork.
 
/Mikael
-----Original Message-----
From: Unai García [mailto:unai.garcia@xxxxxxx.edu]
Sent: Monday, October 13, 2003 4:10 PM
To: Mikael Starvik; dev-etrax
Subject: Re: Problem with kernel configuration: fork() function

My kernel is 2.4.19 on etrax 100lx mcm.

This is the part of program that give me the error:

if (sdp_pid == 0) {

/* start server */

sdp_pid = fork();

if (sdp_pid < 0) {

   BTERROR("fork() failed\n");

   return -1;

}

if (!sdp_pid) {

   /* child */

   err = execlp("btsdp", "btsdp", "-D", NULL);

   if (err)

   BTERROR("Unable to run btsdp\n");

 

I don´t know where is the problem with fork() because I have used this function in other applications without problems.

Could be something about cross compiling?

Thanks,

  ____________________________________________      
\                                                                              /
/   Unai García Amaro                                               \
\   Mondragon Unibertsitatea                          ( o_       /
/   unai.garcia@xxxxxxx.edu     / /\        \
\_____________________________________ V / ____/

 

----- Original Message -----
Sent: Monday, October 13, 2003 3:30 PM
Subject: RE: Problem with kernel configuration: fork() function

Hi,
 
No, fork is always present (otherwise the board wouldn't boot at all). Which kernel version
are you using? What is the problem? Doesn't compile? Fork returns error code?
 
/Mikael
-----Original Message-----
From: owner-dev-etrax@xxxxxxx.com [mailto:owner-dev-etrax@xxxxxxx.com] On Behalf Of Unai García
Sent: Monday, October 13, 2003 3:13 PM
To: dev-etrax
Subject: Problem with kernel configuration: fork() function

Hi everybody,
 
I have a question about kernel configuration.
 
Is there any "kernel configuration option" that enables or disables the use of fork() function?
 
I have a C program that uses this function and I can´t execute it succesfully.
 
Best regards
 
  ____________________________________________      
\                                                                              /
/   Unai García Amaro                                               \
\   Mondragon Unibertsitatea                          ( o_       /
/   unai.garcia@xxxxxxx.edu     / /\        \
\_____________________________________ V / ____/