Author |
Post |
|
#1 Thu Aug 12, 2010 09:15, 173 months ago.
|
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 ?
|
|
#2 Thu Aug 12, 2010 09:56, 173 months ago.
|
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.
|
|
#3 Thu Aug 12, 2010 12:08, 173 months ago.
|
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; }
...
|
|
#4 Thu Aug 12, 2010 12:18, 173 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
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.
|
|
#5 Thu Aug 12, 2010 13:53, 173 months ago.
|
Member
Registered: May 2009
Location: Venezia, Italy
Topic owner
|
Ok, i try...
|
|
#6 Sat Sep 04, 2010 10:42, 173 months ago.
|
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?
|