Changeset 99 in MondoRescue for branches/2.04_berlios/mondo/mondo/common/newt-specific.c
- Timestamp:
- Nov 5, 2005, 12:51:05 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.04_berlios/mondo/mondo/common/newt-specific.c
r30 r99 1 1 /* newt-specific.c 2 $Id : newt-specific.c,v 1.8 2004/06/10 17:13:33 hugo Exp$2 $Id$ 3 3 4 4 subroutines which do display-type things … … 122 122 123 123 /*@unused@*/ 124 //static char cvsid[] = "$Id : newt-specific.c,v 1.8 2004/06/10 17:13:33 hugo Exp$";124 //static char cvsid[] = "$Id$"; 125 125 126 126 extern pid_t g_mastermind_pid; … … 188 188 bool g_called_by_xmondo=FALSE; ///< @bug Unneeded w/current XMondo. 189 189 char *g_erase_tmpdir_and_scratchdir; ///< The command to run to erase the tmpdir and scratchdir at the end of Mondo. 190 char *g_selfmounted_isodir; ///< Holds the NFS mountpoint if mounted via mondoarchive. 190 191 191 192 /* @} - end of globalGroup */ … … 363 364 char fatalstr[MAX_NEWT_COMMENT_LEN] = "-------FATAL ERROR---------"; 364 365 char *tmp; 366 char *command; 365 367 static bool already_exiting=FALSE; 366 368 int i; … … 368 370 /*@ end vars *****************************************************/ 369 371 372 malloc_string(command); 370 373 tmp = malloc(MAX_NEWT_COMMENT_LEN); 371 374 set_signals(FALSE); // link to external func … … 419 422 { run_program_and_log_output(g_erase_tmpdir_and_scratchdir, 5); } 420 423 424 if (g_selfmounted_isodir) { 425 sprintf(command, "umount %s", g_selfmounted_isodir); 426 run_program_and_log_output(command, 5); 427 sprintf(command, "rmdir %s", g_selfmounted_isodir); 428 run_program_and_log_output(command, 5); 429 } 430 421 431 if (!g_text_mode) 422 432 { … … 454 464 if (!g_main_pid) { log_msg(3, "FYI - g_main_pid is blank"); } 455 465 paranoid_free(tmp); 466 paranoid_free(command); 456 467 finish (254); 457 468 } … … 468 479 finish (int signal) 469 480 { 481 char *command; 482 malloc_string(command); 470 483 471 484 /* if (signal==0) { popup_and_OK("Please press <enter> to quit."); } */ … … 481 494 run_program_and_log_output(g_erase_tmpdir_and_scratchdir, 1); 482 495 } 496 if (g_selfmounted_isodir) { 497 sprintf(command, "umount %s", g_selfmounted_isodir); 498 run_program_and_log_output(command, 1); 499 sprintf(command, "rmdir %s", g_selfmounted_isodir); 500 run_program_and_log_output(command, 1); 501 } 483 502 484 503 // iamhere("foo");
Note:
See TracChangeset
for help on using the changeset viewer.