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
Post a Comment