git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Alain Williams' patch for disabling LDAP referrals when requested.
[exim.git]
/
src
/
src
/
daemon.c
diff --git
a/src/src/daemon.c
b/src/src/daemon.c
index fade1a8d845f544f6508ff702efffb4bb61d1578..f1912c40f160dcf19eb35b61497b5609d453d32c 100644
(file)
--- a/
src/src/daemon.c
+++ b/
src/src/daemon.c
@@
-1,4
+1,4
@@
-/* $Cambridge: exim/src/src/daemon.c,v 1.1
4 2006/02/07 11:19:00
ph10 Exp $ */
+/* $Cambridge: exim/src/src/daemon.c,v 1.1
5 2006/02/22 14:46:44
ph10 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
/*************************************************
* Exim - an Internet mail transport agent *
@@
-1414,11
+1414,10
@@
if (running_in_test_harness || write_pid)
if (pid_file_path[0] == 0)
pid_file_path = string_sprintf("%s/exim-daemon.pid", spool_directory);
if (pid_file_path[0] == 0)
pid_file_path = string_sprintf("%s/exim-daemon.pid", spool_directory);
- f =
Ufopen(pid_file_path, "wb"
);
+ f =
modefopen(pid_file_path, "wb", 0644
);
if (f != NULL)
{
(void)fprintf(f, "%d\n", (int)getpid());
if (f != NULL)
{
(void)fprintf(f, "%d\n", (int)getpid());
- (void)fchmod(fileno(f), 0644);
(void)fclose(f);
DEBUG(D_any) debug_printf("pid written to %s\n", pid_file_path);
}
(void)fclose(f);
DEBUG(D_any) debug_printf("pid written to %s\n", pid_file_path);
}