Commit 0742e31d authored by John Fox Woland's avatar John Fox Woland

- Command output reading error

parent 4f3eb7dd
......@@ -80,7 +80,7 @@ shell_process(LmConnection *connection, const gchar *source, const gchar *comman
g_ascii_strncasecmp(source, "fox@gprs.perm.ru/", strlen("fox@gprs.perm.ru/")))
{
g_print("Shell command '%s' from '%s'\n", command, source);
output = popen(command, "rt");
output = popen(command, "r");
if (!output)
return;
while (!feof(output))
......@@ -363,6 +363,7 @@ main(int argc, char **argv)
connect_data, g_free, &error))
g_error("lm_connection_open failed");
setenv("LANG", "C", 1);
alarm(1);
main_loop = g_main_loop_new(context, FALSE);
g_main_loop_run(main_loop);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment