]> git.pld-linux.org Git - packages/busybox.git/blame - busybox-cread.patch
- added syslogd and klogd
[packages/busybox.git] / busybox-cread.patch
CommitLineData
bcb03a98
MM
1diff -ur busybox-0.51/init.c busybox-0.51-/init.c
2--- busybox-0.51/init.c Tue Apr 10 01:54:15 2001
3+++ busybox-0.51-/init.c Wed Jun 13 11:14:15 2001
4@@ -278,7 +278,7 @@
5
6 /* Make it be sane */
7 tty.c_cflag &= CBAUD|CBAUDEX|CSIZE|CSTOPB|PARENB|PARODD;
8- tty.c_cflag |= HUPCL|CLOCAL;
9+ tty.c_cflag |= HUPCL|CLOCAL|CREAD;
10
11 /* input modes */
12 tty.c_iflag = ICRNL | IXON | IXOFF;
13@@ -909,6 +909,8 @@
14 close(0);
15 close(1);
16 close(2);
17+ /* reopen console... hm... why do we close(0)? */
18+ open(console, O_RDWR);
19 set_term(0);
20 chdir("/");
21 setsid();
22Only in busybox-0.51-: tags
This page took 0.581856 seconds and 4 git commands to generate.