SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Sat Apr 20, 2024 07:40
SMSTools3 Community » Help and support Bottom

[outdated] Fatal error: fork failed

  This topic is locked

Page:  1

Author Post
Member
Registered:
May 2009
Location: Venezia, Italy
Operating system name and version: Windows 2003 Server with CYGWIN
Version of smsd: 3.1.5
Smsd installed from: sources
Name and model of a modem / phone: NOKIA telephone
Interface: serial


I have this error: "Fatal error: fork failed", any hint ?

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Smsd itself does not contain this kind of error message, it must come from the OS. I do not know what causes this error and how to fix it. Smsd has been working under Windows Server 2003, which means that probably you have something wrong in your system. Perhaps re-installing Cygwin helps.

Member
Registered:
May 2009
Location: Venezia, Italy
Topic owner
Thanks Keke. I try to reinstall Cygwin.

I've found:

extras.c

int my_system(char *command, char *info)
{
int pid;
int status;
time_t start_time;

start_time = time(0);
#ifdef DEBUGMSG
printf("!! my_system(%s, %s)\n", command, info);
#endif
writelogfile0(LOG_DEBUG, 0, tb_sprintf("Running %s: %s", info, command));

pid = fork();
if (pid == -1)
{
writelogfile0(LOG_CRIT, 0, tb_sprintf("Fatal error: fork failed."));
return -1;
}

...

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Oops :oops: , the message comes from the smsd...

But still, fork was initially worked and now child process cannot create another child process.

You could try to change the line to:

writelogfile0(LOG_CRIT, 0, tb_sprintf("Fatal error: fork failed. %i, %s", errno, strerror(errno)));

After recompiling you should see the error number and explanation in the log.

Member
Registered:
May 2009
Location: Venezia, Italy
Topic owner
Ok, i try...
Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Is this problem still active?

The new version 3.1.12 has this change in the code, error number and explanation is shown, but there is no any other change to the fork() call.

It may be important to know in which place your system gives this error. In the smsd.log, is it right after smsd mainprocess was started, or is it later?

  This topic is locked

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.