Forum

NOMMU Support + Patch

Peter
19 May 2010, 17:41
The is no daemonize (-d is ignored) support because it's a little more involved and hackish. I run hiawatha via inittab so it's void issue but shouldn't be ignored in the future.

This patch is only for source files (*.c) and NOT autoconf files, hiawatha-7.2.nommu.patch http://pastebin.com/4xMwevV2

For the Autoconf fork test case, add AC_FUNC_FORK to configure.ac and re-generate configure scripts. I hadn't included the diff because of possible version clashes.

Hiawatha version: 7.2
Operating System: uClinux
Peter
19 May 2010, 17:55
Correction to the patch http://pastebin.com/j9e7vzsi was missing log_pid(config, getpid()); if -d is supplied.
Hugo Leisink
19 May 2010, 19:37
I don't understand why you want to use vfork(). Blocking the parent process will cripple the webserver. So, what's the purpose?
Peter
19 May 2010, 19:53
I don't understand why you want to use vfork(). Blocking the parent process will cripple the webserver. So, what's the purpose?


Systems without an MMU don't have true fork support and need to substitute the call with vfork. The parent halts until the child calls an exec family system call or _exit.

http://docs.blackfin.uclinux.org/doku.php?id=living_without_forks
Peter
19 May 2010, 20:58
I'd also like to mention that these systems are not capable of serving hundreds or thousands of requests where blocking would definitely impair the server with forking requests. Think small with modest numbers between 1-10 simultaneous requests, more so on the low end. Some tweaks to the kernels network configuration via /proc/sys/net can also alleviate some load troubles.
This topic has been closed.