Posted 25 February 2013 - 04:37 AM
Hi. I was wondering if anyone could help me fix my program at https://raw.github.com/Sxw1212/ccprograms/master/chrootapi
Its like unix chroot except in a api. It loads fine with os.loadAPI, but when you run the chroot function, it freezes and gets terminated on line 44, which is fs.combine. I was wondering if this is an fs.combine bug or something else. Afterwards, all commands in the terminal get frozen and after 10 seconds, shut down. Heres what I ran in the lua prompt:
Its like unix chroot except in a api. It loads fine with os.loadAPI, but when you run the chroot function, it freezes and gets terminated on line 44, which is fs.combine. I was wondering if this is an fs.combine bug or something else. Afterwards, all commands in the terminal get frozen and after 10 seconds, shut down. Heres what I ran in the lua prompt:
lua> os.loadAPI("/chrootapi")
lua> chrootapi.chroot("/rom")
--10 Seconds pass
--Error: to long without yielding on line 44
I don't know what could cause this problem.