gdm r5941 - in trunk: . common
- From: mccann svn gnome org
- To: svn-commits-list gnome org
- Subject: gdm r5941 - in trunk: . common
- Date: Thu, 6 Mar 2008 17:53:53 +0000 (GMT)
Author: mccann
Date: Thu Mar 6 17:53:53 2008
New Revision: 5941
URL: http://svn.gnome.org/viewvc/gdm?rev=5941&view=rev
Log:
2008-03-06 William Jon McCann <jmccann redhat com>
* common/gdm-signal-handler.c (signal_handler): Cast the signal
number to a byte before sending over the pipe.
Patch from: David Woodhouse <dwmw2 redhat com>
Modified:
trunk/ChangeLog
trunk/common/gdm-signal-handler.c
Modified: trunk/common/gdm-signal-handler.c
==============================================================================
--- trunk/common/gdm-signal-handler.c (original)
+++ trunk/common/gdm-signal-handler.c Thu Mar 6 17:53:53 2008
@@ -220,6 +220,7 @@
{
static int in_fatal = 0;
int ignore;
+ guchar signo_byte = signo;
/* avoid loops */
if (in_fatal > 0) {
@@ -244,12 +245,11 @@
g_warning ("Caught signal %d, shutting down abnormally. Generating backtrace...", signo);
gdm_signal_handler_backtrace ();
- ignore = write (signal_pipes [1], (guchar *)&signo, 1);
+ ignore = write (signal_pipes [1], &signo_byte, 1);
break;
default:
--in_fatal;
- /* FIXME: should probably use int32 here */
- ignore = write (signal_pipes [1], (guchar *)&signo, 1);
+ ignore = write (signal_pipes [1], &signo_byte, 1);
break;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]