~ubuntu-branches/ubuntu/precise/xdm/precise

« back to all changes in this revision

Viewing changes to debian/patches/support_logfile_rotation.diff

  • Committer: Bazaar Package Importer
  • Author(s): Artur Rona
  • Date: 2011-01-30 00:53:09 UTC
  • mfrom: (9.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20110130005309-30mjjyk7div7d494
Tags: 1:1.1.10-3ubuntu1
* Merge from debian unstable.  Remaining changes: (LP: #682196)
  - debian/{rules, xdm.install, local/ubuntu*}:
    + Add Ubuntu graphics and configure xdm to use them by default.
  - debian/patches/ubuntu_no_whiteglass.diff: Don't hardcode
    the default Xcursor theme to whiteglass. Use the Ubuntu
    default x-cursor-theme instead.
* debian/patches/ftbfs_binutils-gold.diff: Fix FTBFS with binutils-gold
  and ld --as-needed. (Closes: #556694)
* Dropped changes, no longer applicable:
  - debian/{xdm.postinst.in, xdm.postrm.in, xdm.preinst.in}

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
===================================================================
14
14
--- xdm.orig/dm.c
15
15
+++ xdm/dm.c
16
 
@@ -83,8 +83,10 @@
 
16
@@ -90,8 +90,10 @@
17
17
 extern FILE    *fdopen();
18
18
 #endif
19
19
 
25
25
 static void    RestartDisplay (struct display *d, int forceReserver);
26
26
 static void    ScanServers (void);
27
27
 static void    SetAccessFileTime (void);
28
 
@@ -93,6 +95,7 @@
 
28
@@ -100,6 +102,7 @@
29
29
 static void    TerminateProcess (pid_t pid, int signal);
30
30
 
31
31
 volatile int   Rescan;
33
33
 static long    ServersModTime, ConfigModTime, AccessFileModTime;
34
34
 
35
35
 int nofork_session = 0;
36
 
@@ -202,6 +205,7 @@
 
36
@@ -209,6 +212,7 @@
37
37
     AddOtherEntropy();
38
38
 #endif
39
39
     (void) Signal (SIGHUP, RescanNotify);
40
 
+       (void) Signal (SIGUSR2, ReopenLogFileNotify);
 
40
+    (void) Signal (SIGUSR2, ReopenLogFileNotify);
41
41
 #ifndef UNRELIABLE_SIGNALS
42
42
     (void) Signal (SIGCHLD, ChildNotify);
43
43
 #endif
44
 
@@ -212,6 +216,11 @@
 
44
@@ -219,6 +223,11 @@
45
45
 #endif
46
46
           AnyDisplaysLeft ())
47
47
     {
53
53
        if (Rescan)
54
54
        {
55
55
            RescanServers ();
56
 
@@ -236,6 +245,7 @@
 
56
@@ -243,6 +252,7 @@
57
57
     int olderrno = errno;
58
58
 
59
59
     Debug ("Caught SIGHUP\n");
60
 
+       Reopen = 1;
 
60
+    Reopen = 1;
61
61
     Rescan = 1;
62
62
 #ifdef SIGNALS_RESET_WHEN_CAUGHT
63
63
     (void) Signal (SIGHUP, RescanNotify);
64
 
@@ -243,6 +253,26 @@
 
64
@@ -250,6 +260,26 @@
65
65
     errno = olderrno;
66
66
 }
67
67
 
88
88
 static void
89
89
 ScanServers (void)
90
90
 {
91
 
@@ -310,6 +340,14 @@
 
91
@@ -317,6 +347,14 @@
92
92
 }
93
93
 
94
94
 static void
107
107
===================================================================
108
108
--- xdm.orig/dm_error.h
109
109
+++ xdm/dm_error.h
110
 
@@ -44,6 +44,8 @@
111
 
 # define GCC_PRINTFLIKE(fmt,var) /*nothing*/
112
 
 #endif
 
110
@@ -40,6 +40,8 @@
 
111
 #  define GCC_PRINTFLIKE(fmt,var) /*nothing*/
 
112
 # endif
113
113
 
114
114
+#define WRITES(fd, buf) write(fd, buf, strlen(buf))
115
115
+
116
 
 extern void Debug        (char * fmt, ...) GCC_PRINTFLIKE(1,2);
 
116
 extern void Debug        (const char * fmt, ...) GCC_PRINTFLIKE(1,2);
117
117
 extern void InitErrorLog (void);
118
 
 extern void LogError     (char * fmt, ...) GCC_PRINTFLIKE(1,2);
119
 
Index: xdm/error.c
120
 
===================================================================
121
 
--- xdm.orig/error.c
122
 
+++ xdm/error.c
123
 
@@ -49,8 +49,6 @@
124
 
 #include "dm.h"
125
 
 #include "dm_error.h"
126
 
 
127
 
-#define WRITES(fd, buf) write(fd, buf, strlen(buf))
128
 
-
129
 
 void
130
 
 LogInfo(char * fmt, ...)
131
 
 {
 
118
 extern void LogAppend    (const char * fmt, ...) GCC_PRINTFLIKE(1,2);
132
119
Index: xdm/xdm.man.cpp
133
120
===================================================================
134
121
--- xdm.orig/xdm.man.cpp
135
122
+++ xdm/xdm.man.cpp
136
 
@@ -1411,6 +1411,37 @@
 
123
@@ -1407,6 +1407,37 @@
137
124
 multiple window systems on the same hardware, you'll probably be more
138
125
 interested in
139
126
 .I xinit.