summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2014-12-05 13:35:14 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2014-12-05 13:35:14 -0500
commit3da1ac3b42d514404de4e809713157624f3a293d (patch)
tree1360d53d661155af3476c9ff77d3b555d6a679c8
parentb2d47c007080804b3efc1feca6f56942e0011f66 (diff)
eeze_scanner now has separate return codes for various startup-related failures
ref T1612
-rw-r--r--src/bin/eeze/eeze_scanner.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/eeze/eeze_scanner.c b/src/bin/eeze/eeze_scanner.c
index 21c4495..a6a067d 100644
--- a/src/bin/eeze/eeze_scanner.c
+++ b/src/bin/eeze/eeze_scanner.c
@@ -415,6 +415,7 @@ sigs_setup(void)
415int 415int
416main(void) 416main(void)
417{ 417{
418 int ret;
418 eina_init(); 419 eina_init();
419 ecore_init(); 420 ecore_init();
420 ecore_con_init(); 421 ecore_con_init();
@@ -427,6 +428,7 @@ main(void)
427 428
428 eet_setup(); 429 eet_setup();
429 clients = eina_hash_pointer_new(NULL); 430 clients = eina_hash_pointer_new(NULL);
431 ret = 1;
430 EINA_SAFETY_ON_NULL_GOTO(clients, error); 432 EINA_SAFETY_ON_NULL_GOTO(clients, error);
431 433
432 ecore_event_handler_add(ECORE_CON_EVENT_CLIENT_ADD, (Ecore_Event_Handler_Cb)cl_add, NULL); 434 ecore_event_handler_add(ECORE_CON_EVENT_CLIENT_ADD, (Ecore_Event_Handler_Cb)cl_add, NULL);
@@ -440,6 +442,7 @@ main(void)
440 eeze_udev_watch_add(EEZE_UDEV_TYPE_DRIVE_MOUNTABLE, EEZE_UDEV_EVENT_NONE, cb_vol_chg, NULL); 442 eeze_udev_watch_add(EEZE_UDEV_TYPE_DRIVE_MOUNTABLE, EEZE_UDEV_EVENT_NONE, cb_vol_chg, NULL);
441 443
442 svr = ecore_con_server_add(ECORE_CON_LOCAL_SYSTEM, "eeze_scanner", 0, NULL); 444 svr = ecore_con_server_add(ECORE_CON_LOCAL_SYSTEM, "eeze_scanner", 0, NULL);
445 ret = 2;
443 EINA_SAFETY_ON_NULL_GOTO(svr, error); 446 EINA_SAFETY_ON_NULL_GOTO(svr, error);
444 447
445 storage_setup(); 448 storage_setup();
@@ -449,5 +452,5 @@ main(void)
449 return 0; 452 return 0;
450error: 453error:
451 ERR("Could not start up!"); 454 ERR("Could not start up!");
452 exit(1); 455 exit(ret);
453} 456}