Browse Source

* Pass env from main() arguments instead of platform specific global environ

tags/0.3.1
Vsevolod Stakhov 14 years ago
parent
commit
80e9384ebf
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      src/buffer.c
  2. 1
    1
      src/main.c

+ 1
- 1
src/buffer.c View File

@@ -44,8 +44,8 @@ sendfile_callback (rspamd_io_dispatcher_t *d)

#ifdef HAVE_SENDFILE
# if defined(FREEBSD) || defined(DARWIN)
#if defined(FREEBSD)
off_t off = 0;
#if defined(FREEBSD)
/* FreeBSD version */
if (sendfile (d->sendfile_fd, d->fd, d->offset, 0, NULL, &off, 0) != 0) {
#elif defined(DARWIN)

+ 1
- 1
src/main.c View File

@@ -762,7 +762,7 @@ main (int argc, char **argv, char **env)
do_reopen_log = 0;

#ifndef HAVE_SETPROCTITLE
init_title (argc, argv, environ);
init_title (argc, argv, env);
#endif

rspamd->stat = memory_pool_alloc_shared (rspamd->server_pool, sizeof (struct rspamd_stat));

Loading…
Cancel
Save