Flush stdout/stderr after newline
git-svn-id: http://tint2.googlecode.com/svn/trunk@760 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
committed by
mrovi9000@gmail.com
parent
eef4987b0b
commit
b78c854700
@@ -394,7 +394,6 @@ void load_themes_helper(const char *name, GSList **themes, GSList **queued)
|
|||||||
free(name);
|
free(name);
|
||||||
}
|
}
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
fflush(stderr);
|
|
||||||
|
|
||||||
// Free the queue
|
// Free the queue
|
||||||
GSList *l;
|
GSList *l;
|
||||||
|
|||||||
@@ -1082,6 +1082,10 @@ int main (int argc, char *argv[])
|
|||||||
struct timeval* timeout;
|
struct timeval* timeout;
|
||||||
int hidden_dnd = 0;
|
int hidden_dnd = 0;
|
||||||
|
|
||||||
|
// Make stdout/stderr flush after a newline (for some reason they don't even if tint2 is started from a terminal)
|
||||||
|
setlinebuf(stdout);
|
||||||
|
setlinebuf(stderr);
|
||||||
|
|
||||||
start:
|
start:
|
||||||
init (argc, argv);
|
init (argc, argv);
|
||||||
|
|
||||||
|
|||||||
@@ -433,7 +433,6 @@ void menuApply()
|
|||||||
}
|
}
|
||||||
// Write config file
|
// Write config file
|
||||||
printf("Writing %s to %s\n", g_default_theme, g_path_config);
|
printf("Writing %s to %s\n", g_default_theme, g_path_config);
|
||||||
fflush(stdout);
|
|
||||||
copy_file(g_default_theme, g_path_config);
|
copy_file(g_default_theme, g_path_config);
|
||||||
// Restart panel
|
// Restart panel
|
||||||
int unused = system("killall -SIGUSR1 tint2");
|
int unused = system("killall -SIGUSR1 tint2");
|
||||||
|
|||||||
@@ -517,7 +517,6 @@ void config_write_tooltip(FILE *fp)
|
|||||||
|
|
||||||
void config_save_file(const char *path) {
|
void config_save_file(const char *path) {
|
||||||
printf("config_save_file : %s\n", path);
|
printf("config_save_file : %s\n", path);
|
||||||
fflush(stdout);
|
|
||||||
|
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
if ((fp = fopen(path, "wt")) == NULL)
|
if ((fp = fopen(path, "wt")) == NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user