patch-2.4.10 linux/fs/proc/kmsg.c
Next file: linux/fs/proc/proc_misc.c
Previous file: linux/fs/proc/kcore.c
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Sun Sep 16 21:22:40 2001
- Orig file:
v2.4.9/linux/fs/proc/kmsg.c
- Orig date:
Sat Feb 26 20:33:07 2000
diff -u --recursive --new-file v2.4.9/linux/fs/proc/kmsg.c linux/fs/proc/kmsg.c
@@ -14,7 +14,6 @@
#include <asm/uaccess.h>
#include <asm/io.h>
-extern unsigned long log_size;
extern wait_queue_head_t log_wait;
extern int do_syslog(int type, char * bug, int count);
@@ -39,7 +38,7 @@
static unsigned int kmsg_poll(struct file *file, poll_table * wait)
{
poll_wait(file, &log_wait, wait);
- if (log_size)
+ if (do_syslog(9, 0, 0))
return POLLIN | POLLRDNORM;
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)