Afficher un message
Vieux 17/09/2007, 21h12   #6
Michael Linfield
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: loop a program on exit?

John Joyce wrote:

> You're going into very platform specific territory there. Potentially
> malware like behavior.


this is true, i do see how it could be seen as malware behavior and i
should probably stay away from that. Its purpose is to make sure the
user cannot exit while its running its given functions, if they were to
do this, it could cause some serious problems


> at_exit {exec "ruby", $0, *ARGS}

thanks Tim Pease ill look into that

>END{
> code
>}


i will give that a shot as well
--
Posted via http://www.ruby-forum.com/.

  Réponse avec citation
 
Page generated in 0,05278 seconds with 9 queries