20090301-alt13.1

- silly bug in waiting fixed
This commit is contained in:
Anton V. Boyarshinov 2010-11-19 23:28:16 +03:00
parent 46da4d889d
commit 235e6e0e39
3 changed files with 7 additions and 2 deletions

3
log.c
View File

@ -72,7 +72,8 @@ void open_log(void)
if (!IS_TESTING) {
for(i=0; i < timeout; i++ ) {
logfile = fopen("/dev/tty3", "w");
if(logfile > -1) break;
if(logfile != NULL) break;
fprintf(stderr,"\rwaiting for /dev/tty3: %d",i);
sleep(1);
}
if (!logfile)

View File

@ -3,7 +3,7 @@
Name: propagator
Version: 20090301
Release: alt13
Release: alt13.1
Summary: 'Early userspace' set of binaries
License: GPL
@ -39,6 +39,9 @@ make %{?_with_shell:WITH_SHELL=t} %{?_with_splash:WITH_SPLASH=t} libdir=%_libdir
%_libdir/%name
%changelog
* Fri Nov 19 2010 Anton V. Boyarshinov <boyarsh@altlinux.ru> 20090301-alt13.1
- silly bug in waiting fixed
* Thu Nov 18 2010 Anton V. Boyarshinov <boyarsh@altlinux.ru> 20090301-alt13
- Wait for tty[23]. It seems that is also fixes drives detection on el-smp

View File

@ -120,6 +120,7 @@ static void spawn_shell(void)
for(i=0; i < timeout; i++ ) {
fd = open("/dev/tty2", O_RDWR);
if(fd > -1) break;
fprintf(stderr,"waiting for /dev/tty2: %d\n",i);
sleep(1);
}
if (fd == -1) {