From: <eli...@us...> - 2003-10-20 17:32:18
|
Update of /cvsroot/morphix/partitionmorpher/src In directory sc8-pr-cvs1:/tmp/cvs-serv20074/src Modified Files: main.c Log Message: Workaround for Parted not working when stdout redirected at the command line Index: main.c =================================================================== RCS file: /cvsroot/morphix/partitionmorpher/src/main.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** main.c 19 Oct 2003 00:18:57 -0000 1.4 --- main.c 20 Oct 2003 17:22:29 -0000 1.5 *************** *** 61,64 **** --- 61,71 ---- scan_devices(); + /* Parted has a bug where if stdout is redirected at the + command line to a file, then it can no longer call the + _timer_handler with the appropriate amount of time left. + Thus, we manually redirect stdout to stderr here */ + dup2(fileno(stderr), fileno(stdout)); + + MainWindow = create_MainWindow (); gtk_widget_show (MainWindow); |