Changeset 147 in MondoRescue for trunk/mondo/mondo/common/libmondo-fork.c
- Timestamp:
- Dec 1, 2005, 10:26:01 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/common/libmondo-fork.c
r130 r147 302 302 int retval = 0; 303 303 int res = 0; 304 int n = 0;305 304 int i; 306 305 … … 344 343 } 345 344 } 346 #ifdef _XWIN347 /* This only can update when newline goes into the file,348 but it's *much* prettier/faster on Qt. */349 tmp = NULL;350 while (does_file_exist(lockfile)) {351 while (!feof(fin)) {352 if (!getline(&tmp, &n, fin))353 break;354 log_to_screen(tmp);355 }356 usleep(500000);357 }358 paranoid_free(tmp);359 #else360 345 /* This works on Newt, and it gives quicker updates. */ 361 346 for (; does_file_exist(lockfile); sleep(1)) { … … 363 348 update_evalcall_form(1); 364 349 } 365 #endif366 350 /* Evaluate the status returned by pclose to get the exit code of the called program. */ 367 351 errno = 0; … … 905 889 int res; 906 890 char *curr_fifo; 907 char *prev_fifo ;891 char *prev_fifo = NULL; 908 892 char *oldest_fifo = NULL; 909 893 char *next_fifo;
Note:
See TracChangeset
for help on using the changeset viewer.