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

Re: Problem with kernel configuration: fork() function



Title: Message

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 / ____/