--- a/server.c Thu Aug 21 23:21:22 2008 +0200
+++ b/server.c Wed Feb 16 20:57:32 2011 +0100
@@ -12,6 +12,7 @@
#include <errno.h>
#include <signal.h>
#include <string.h>
+#include <fcntl.h>
#include "main.h"
#include "handlers.h"
@@ -19,6 +20,9 @@
/* signals.c */
extern int child_died;
+/* app_control.c */
+extern int savefile;
+
/*extern*/
void fdset_dump(fd_set *set, int maxfd);
@@ -143,6 +147,11 @@
s_eth_init();
#endif /* linux */
+ if (command_line.s_param.savefile)
+ {
+ savefile = open(command_line.s_param.savefile, O_CREAT | O_RDWR, 0666);
+ }
+
child = fork_app(command_line.s_param.command);
if (command_line.s_param.nohup)