aboutsummaryrefslogtreecommitdiffstats
path: root/src/kmodule.c
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-01-03 21:49:37 +0000
committerBill Nottingham <notting@redhat.com>2005-01-03 21:49:37 +0000
commit30421bdbef96c41303c2467086cdef48e2399abd (patch)
tree91a0f782723fa5d31e9be60aaaed2033f4c66261 /src/kmodule.c
parent0f3d913094a48297891b649a6d938aee3afeacdd (diff)
downloadinitscripts-30421bdbef96c41303c2467086cdef48e2399abd.tar
initscripts-30421bdbef96c41303c2467086cdef48e2399abd.tar.gz
initscripts-30421bdbef96c41303c2467086cdef48e2399abd.tar.bz2
initscripts-30421bdbef96c41303c2467086cdef48e2399abd.tar.xz
initscripts-30421bdbef96c41303c2467086cdef48e2399abd.zip
flush stdout before forkingr8-02
Diffstat (limited to 'src/kmodule.c')
-rw-r--r--src/kmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kmodule.c b/src/kmodule.c
index d344eca6..138c481f 100644
--- a/src/kmodule.c
+++ b/src/kmodule.c
@@ -94,7 +94,7 @@ void waitForConnection(struct device **devlist)
int main(int argc, char **argv)
{
- char *bus = NULL, *class = NULL, *buf = NULL;
+ char *bus = NULL, *class = NULL;
int x, rc, isdaemon = 0;
enum deviceBus probeBus = BUS_UNSPEC & ~BUS_SERIAL;
enum deviceClass probeClass = CLASS_UNSPEC;
@@ -156,6 +156,7 @@ int main(int argc, char **argv)
printf("%s %s\n",classes[i].string,devs[x]->driver);
}
}
+ fflush(stdout);
if (isdaemon) {
daemon(0,0);
waitForConnection(devs);