~ubuntu-branches/ubuntu/vivid/flog/vivid

« back to all changes in this revision

Viewing changes to debian/patches/remove_pid_struct

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Berg
  • Date: 2010-10-31 22:30:49 UTC
  • Revision ID: james.westby@ubuntu.com-20101031223049-rc619yf11odwo45n
Tags: 1.8-3
* Remove duplicate pid file fopen() and redundant pid struct member.
  By Carlos Carvalho. Closes: #601048.
* Convert to 3.0 (quilt).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- a/flog.c
 
2
+++ b/flog.c
 
3
@@ -37,7 +37,6 @@ struct Conf {
 
4
   char * time_format;
 
5
   char * pidfile_name;
 
6
   int max_len;
 
7
-  int pid;
 
8
 } conf;
 
9
 
 
10
 #define DEFAULT_TIME_FORMAT "%Y%m%d;%T: "
 
11
@@ -77,7 +76,6 @@ int main(int argc, char** argv)
 
12
       opt++;
 
13
       if (opt < argc) {
 
14
         conf.pidfile = 1;
 
15
-        conf.pid = getpid();
 
16
         conf.pidfile_name = argv[opt];
 
17
       }
 
18
     } else if (!strcmp(argv[opt], "-l")) {