plasma-umass / browsix

Browsix is a Unix-like operating system for the browser.
Other
3.16k stars 182 forks source link

return an error from Kernel.spawn if a process doesn't send an acknowledgement #25

Open bpowers opened 8 years ago

bpowers commented 8 years ago

I'm not exactly sure what the protocol should be, but @shivamkakkar brought up the good point that the error handling in spawn isn't complete. Right now we eagerly try to execute whatever the user wants, even if that thing ends up being a non-Browsix javascript or text file.

We should have a protocol whereby we launch a worker, send it the init message, and wait for a reply. If we don't get a reply in < $N milliseconds, we kill it and report an error. I'm open to other proposals, too.