summaryrefslogtreecommitdiff
path: root/dm.c
diff options
context:
space:
mode:
authorEgbert Eich <eich@suse.de>2004-01-29 08:09:07 +0000
committerEgbert Eich <eich@suse.de>2004-01-29 08:09:07 +0000
commit102dcbe36ca6c5ef6c8efcfbf6ce6fa3542142ec (patch)
tree37b992232fe3ea071502cd43161f3e3052a6726d /dm.c
parent0bd68eefddac98eaebb353dce62971a34a565842 (diff)
Importing vendor version xf86-012804-2330 on Thu Jan 29 00:06:33 PST 2004xf86-4_3_99_903_specialxf86-012804-2330
Diffstat (limited to 'dm.c')
-rw-r--r--dm.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/dm.c b/dm.c
index c953b98..8f78ca8 100644
--- a/dm.c
+++ b/dm.c
@@ -26,7 +26,7 @@ other dealings in this Software without prior written authorization
from The Open Group.
*/
-/* $XFree86: xc/programs/xdm/dm.c,v 3.23 2003/09/17 05:48:32 herrb Exp $ */
+/* $XFree86: xc/programs/xdm/dm.c,v 3.24 2004/01/10 21:26:29 herrb Exp $ */
/*
* xdm - display manager daemon
@@ -133,11 +133,9 @@ main (int argc, char **argv)
exit (1);
}
if (debugLevel == 0 && daemonMode)
- BecomeOrphan ();
+ BecomeDaemon ();
if (debugLevel >= 10)
nofork_session = 1;
- if (debugLevel == 0 && daemonMode)
- BecomeDaemon ();
/* SUPPRESS 560 */
if ((oldpid = StorePid ()))
{
@@ -478,12 +476,6 @@ WaitForChild (void)
else
RestartDisplay (d, FALSE);
break;
- default:
- Debug ("Display exited with unknown status %d\n", waitVal(status));
- LogError ("Unknown session exit code %d from process %d\n",
- waitVal (status), pid);
- StopDisplay (d);
- break;
case OPENFAILED_DISPLAY:
Debug ("Display exited with OPENFAILED_DISPLAY, try %d of %d\n",
d->startTries, d->startAttempts);
@@ -556,6 +548,12 @@ WaitForChild (void)
else
RestartDisplay (d, FALSE);
break;
+ default:
+ Debug ("Display exited with unknown status %d\n", waitVal(status));
+ LogError ("Unknown session exit code %d from process %d\n",
+ waitVal (status), pid);
+ StopDisplay (d);
+ break;
}
}
/* SUPPRESS 560 */