modified: README
modified: main.c
Changes after Version 1.4 release
- Bugfix: When reloading interfaces, interface will not be reopened, if
interface was specified by name.
Changes after Version 1.4 release
- Bugfix: When reloading interfaces, interface will not be reopened, if
interface was specified by name.
+- Added PID file (thanx to Joerg)
if (!(strcasecmp(argv[1],"fork")))
{
pid_t pid;
if (!(strcasecmp(argv[1],"fork")))
{
pid_t pid;
/* do daemon fork */
pid = fork();
/* do daemon fork */
pid = fork();
+
+ /* write pid file */
+ pidfile = fopen("/var/run/lcr.pid","w");
+ fprintf(pidfile, "%d\n", getpid());
+ fclose(pidfile);
} else
/* if not start */
if (!!strcasecmp(argv[1],"start"))
} else
/* if not start */
if (!!strcasecmp(argv[1],"start"))