View | Details | Raw Unified | Return to bug 22362
Collapse All | Expand All

(-)xdm-1.1.9/greeter/greet.c (-3 lines)
Lines 489-497 Link Here
489
	LogError ("Cannot reopen display %s for greet window\n", d->name);
489
	LogError ("Cannot reopen display %s for greet window\n", d->name);
490
	exit (RESERVER_DISPLAY);
490
	exit (RESERVER_DISPLAY);
491
    }
491
    }
492
#ifdef USE_SYSLOG
493
    openlog("xdm", LOG_ODELAY|LOG_PID, LOG_AUTHPRIV);
494
#endif
495
492
496
    for (;;) {
493
    for (;;) {
497
#ifdef USE_PAM
494
#ifdef USE_PAM
(-)xdm-1.1.9/dm.c (+13 lines)
Lines 75-80 Link Here
75
# endif
75
# endif
76
#endif
76
#endif
77
77
78
#if defined(HAVE_OPENLOG) && defined(HAVE_SYSLOG_H)
79
# define USE_SYSLOG
80
# include <syslog.h>
81
# ifndef LOG_AUTHPRIV
82
#  define LOG_AUTHPRIV LOG_AUTH
83
# endif
84
# ifndef LOG_PID
85
#  define LOG_PID 0
86
# endif
87
#endif
78
88
79
#if defined(SVR4) && !defined(sun)
89
#if defined(SVR4) && !defined(sun)
80
extern FILE    *fdopen();
90
extern FILE    *fdopen();
Lines 745-750 Link Here
745
    switch (pid)
755
    switch (pid)
746
    {
756
    {
747
    case 0:
757
    case 0:
758
#ifdef USE_SYSLOG
759
	openlog("xdm", LOG_ODELAY|LOG_PID, LOG_AUTHPRIV); 
760
#endif
748
	if (!nofork_session) {
761
	if (!nofork_session) {
749
	    CleanUpChild ();
762
	    CleanUpChild ();
750
	    (void) Signal (SIGPIPE, SIG_IGN);
763
	    (void) Signal (SIGPIPE, SIG_IGN);

Return to bug 22362