Skip to contentSkip to conversation

plugins: rm unneeded exits/sleeps from ril plugin

PATCH Applied Tony Espy 2 participants 2 messages Nov 19, 2015

lore
Share & tools
lore

Tony Espy

author
#0 lore raw

PATCH v2 1/1 plugins: rm unneeded exits/sleeps from ril plugin

---
 plugins/ril.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
plugins/ril.c +3 -7
index 8ccf01a..9bf86c5 100644
@@ -142,13 +142,9 @@ static void ril_radio_state_changed(struct ril_msg *message, gpointer user_data)
 			 * too fast re-spawns, then exit with error to make
 			 * upstart re-start ofono.
 			 */
-			if (rd->ofono_online) {
+			if (rd->ofono_online)
 				ofono_error("%s: radio self-powered off!",
 						__func__);
-				sleep(5);
-				exit(1);
-			}
-			break;
 		}
 	}
 }
@@ -398,8 +394,8 @@ static gboolean connect_rild(gpointer user_data)
 		if (create_gril(modem) < 0)
 			return TRUE;
 	} else {
-		ofono_error("Exiting, can't connect to rild.");
-		exit(0);
+		ofono_error("Failed to connect to rild.");
+		return TRUE;
 	}
 
 	return FALSE;
Signature · 1 line
2.1.4
#1 lore raw

Hi Tony,

Quoted 4 lines · Tony Espy
---
  plugins/ril.c | 10 +++-------
  1 file changed, 3 insertions(+), 7 deletions(-)

Applied, thanks.

Regards,
-Denis