Fix up eipconvtest.c
[akaros.git] / kern / src / net / pppmedium.c
index 2354728..d21ae82 100644 (file)
@@ -85,7 +85,7 @@ pppbind(Ipifc *ifc, int argc, char **argv)
        if(pppopen(ppp, argv[2], ipaddr, remip, mtu, framing, chapname, secret) == nil)
                error("ppp open failed");
        poperror();
-       kproc("pppreader", pppreader, ifc, KPDUPPG|KPDUPFDG);
+       ktask("pppreader", pppreader, ifc);
 }
 
 static void
@@ -146,7 +146,7 @@ pppunbind(Ipifc *ifc)
 
        /* wait for kprocs to die */
        while(ppp->readp != 0 || ppp->timep != 0)
-               tsleep(&up->sleep, return0, 0, 300);
+               udelay_sched(300 * 1000);
 
        pppclose(ppp);
        qclose(ifc->conv->eq);