comparison src/remote.c @ 1144:5fe3b8b3a612

Add a wrapper around system() call named runcmd() which allows easier debugging. Improve the code launching the help browser.
author zas_
date Sat, 15 Nov 2008 10:35:43 +0000
parents 1646720364cf
children 3a7af6a8cd5f
comparison
equal deleted inserted replaced
1143:893dfe1eca99 1144:5fe3b8b3a612
741 741
742 if (blank || cmd_list || path) g_string_append(command, " --blank"); 742 if (blank || cmd_list || path) g_string_append(command, " --blank");
743 if (get_debug_level()) g_string_append(command, " --debug"); 743 if (get_debug_level()) g_string_append(command, " --debug");
744 744
745 g_string_append(command, " &"); 745 g_string_append(command, " &");
746 system(command->str); 746 runcmd(command->str);
747 g_string_free(command, TRUE); 747 g_string_free(command, TRUE);
748 748
749 while (!rc && retry_count > 0) 749 while (!rc && retry_count > 0)
750 { 750 {
751 usleep((retry_count > 10) ? 500000 : 1000000); 751 usleep((retry_count > 10) ? 500000 : 1000000);