gnome-settings-daemon r603 - in trunk: . gnome-settings-daemon
- From: behdad svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-settings-daemon r603 - in trunk: . gnome-settings-daemon
- Date: Mon, 10 Nov 2008 15:27:55 +0000 (UTC)
Author: behdad
Date: Mon Nov 10 15:27:54 2008
New Revision: 603
URL: http://svn.gnome.org/viewvc/gnome-settings-daemon?rev=603&view=rev
Log:
2008-11-10 Behdad Esfahbod <behdad gnome org>
* gnome-settings-daemon/main.c (daemon_start): Check return value of
pipe().
Modified:
trunk/ChangeLog
trunk/gnome-settings-daemon/main.c
Modified: trunk/gnome-settings-daemon/main.c
==============================================================================
--- trunk/gnome-settings-daemon/main.c (original)
+++ trunk/gnome-settings-daemon/main.c Mon Nov 10 15:27:54 2008
@@ -247,13 +247,16 @@
gnome_settings_profile_msg ("forking daemon");
signal (SIGPIPE, SIG_IGN);
- pipe (pipefds);
+ if (-1 == pipe (pipefds)) {
+ g_error ("Could not create pipe: %s", g_strerror (errno));
+ exit (EXIT_FAILURE);
+ }
+
child_pid = fork ();
switch (child_pid) {
case -1:
g_error ("Could not daemonize: %s", g_strerror (errno));
-
exit (EXIT_FAILURE);
case 0:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]