ubuntu 12.04 - Block shutdown process from Ruby application -


in ruby application, recording audio , after stopping takes 1 minute secure. during period, if user shuts down system, audio gets corrupted.

i want restrict user shutdown system. how can using ruby?

i using ruby 1.9.3 , ubuntu 12.04.

write in file make run when terminal closed:

process.demon(true, true) 

not sure how prevent os shutdown. not sure if question either.


Comments

Popular posts from this blog

python - matpltolib navigation toolbar edit curves and parameters line color automatically changes issue -

node.js - Nodejs javascript implementation of PBEWithMD5AndTripleDES/CBC/PKCS5Padding -