diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2003-08-13 08:24:54 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2003-08-13 08:24:54 +0000 |
commit | ca5e85181f7b79cdb1d5425578cebba0432aa5d6 (patch) | |
tree | 4f83e375d89b02200e8547451bf8834a72c7ee29 /fetchmail.c | |
parent | dc7ccd12dc4dbf5a1b41a4be5864d9e9167e89c9 (diff) | |
download | fetchmail-ca5e85181f7b79cdb1d5425578cebba0432aa5d6.tar.gz fetchmail-ca5e85181f7b79cdb1d5425578cebba0432aa5d6.tar.bz2 fetchmail-ca5e85181f7b79cdb1d5425578cebba0432aa5d6.zip |
More minor fixes.
svn path=/trunk/; revision=3834
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fetchmail.c b/fetchmail.c index 8a0cdf0b..e4a8cb72 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -368,6 +368,15 @@ int main(int argc, char **argv) if (argc == 2) exit(PS_EXCLUDE); } + else if (getpid() == pid) + { + /* this test enables re-execing on a changed rcfile */ + if (argc == 2) + { + fprintf(stderr,GT_("fetchmail: no other fetchmail is running\n")); + exit(PS_EXCLUDE); + } + } else if (kill(pid, SIGTERM) < 0) { fprintf(stderr,GT_("fetchmail: error killing %s fetchmail at %d; bailing out.\n"), |