diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-06-29 15:40:40 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-06-29 15:40:40 +0200 |
commit | 40334847b685e6058be562b4436f72426637f4d8 (patch) | |
tree | b312baf018722872c5116e40b3aec891e513f0ca /tools/pidfile.c | |
parent | 7e7ee674bed138a19e8b7bdf962e1df5ae28128b (diff) | |
parent | 5a993ad7425bce33380ff10308f2ae93dadf8dae (diff) | |
download | rsyslog-40334847b685e6058be562b4436f72426637f4d8.tar.gz rsyslog-40334847b685e6058be562b4436f72426637f4d8.tar.bz2 rsyslog-40334847b685e6058be562b4436f72426637f4d8.zip |
Merge branch 'master-module'
Diffstat (limited to 'tools/pidfile.c')
-rw-r--r-- | tools/pidfile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/pidfile.c b/tools/pidfile.c index e7744513..e9601232 100644 --- a/tools/pidfile.c +++ b/tools/pidfile.c @@ -125,7 +125,7 @@ int write_pid (char *pidfile) char errStr[1024]; rs_strerror_r(errno, errStr, sizeof(errStr)); printf("Can't write pid , %s.\n", errStr); - close(fd); + fclose(f); return 0; } fflush(f); @@ -135,11 +135,11 @@ int write_pid (char *pidfile) char errStr[1024]; rs_strerror_r(errno, errStr, sizeof(errStr)); printf("Can't unlock pidfile %s, %s.\n", pidfile, errStr); - close(fd); + fclose(f); return 0; } #endif - close(fd); + fclose(f); return pid; } |