add latest version

This commit is contained in:
Oliver Lehmann 2008-06-02 18:23:39 +00:00
parent 77770f2d71
commit 6d740592ad
1 changed files with 10 additions and 2 deletions

View File

@ -5,8 +5,8 @@
Programm: format.c Programm: format.c
Bearbeiter : P. Hoge Bearbeiter : P. Hoge
Datum : ??.??.?? Datum : 30.11.89
Version : 1.5 Version : 1.6
*************************************************************************** ***************************************************************************
@ -16,6 +16,7 @@
*************************************************************************** ***************************************************************************
**************************************************************************/ **************************************************************************/
#include <signal.h>
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
@ -60,6 +61,13 @@ char **argv;
exit(1); exit(1);
} }
/* Programm darf nicht abgebrochen werden */
signal(SIGALRM, SIG_IGN);
signal(SIGHUP, SIG_IGN);
signal(SIGINT, SIG_IGN);
signal(SIGQUIT, SIG_IGN);
signal(SIGTERM, SIG_IGN);
buf = 'F'; buf = 'F';
write(dd, &buf, 1); /* Start Request F: Format */ write(dd, &buf, 1); /* Start Request F: Format */
buf = stbuf.st_rdev; /* Minornummer (Typ + Drivenr.) */ buf = stbuf.st_rdev; /* Minornummer (Typ + Drivenr.) */