diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-10-10 08:09:16 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-10-10 08:09:16 +0000 |
| commit | 1af73e306c83ab7efe4937ea4c18bbe27581d8f0 (patch) | |
| tree | 54462a233d0f6441c7913721dca5a778a7afe730 /src | |
| parent | cb69cca6754c7d2553e8c584f4c542d7faf426f3 (diff) | |
2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
* configure.ac
* src/daemon.cc
Diffstat (limited to 'src')
| -rw-r--r-- | src/daemon.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemon.cc b/src/daemon.cc index 68e74770..35a094c1 100644 --- a/src/daemon.cc +++ b/src/daemon.cc @@ -43,7 +43,7 @@ namespace aria2 { int daemon(int nochdir, int noclose) { pid_t pid; -#ifdef HAVE_FORK +#ifdef HAVE_WORKING_FORK pid = fork(); if(pid == -1) { return -1; @@ -75,7 +75,7 @@ int daemon(int nochdir, int noclose) return -1; } } -#endif // HAVE_FORK +#endif // HAVE_WORKING_FORK return 0; } |
