mrdombass's blog

By mrdombass, history, 8 years ago, In English

Hey everyone !

I would like to know if there is any command which can be written during compilation of C++ program(not in my solution code) that would stop the program from running indefinitely ?

I am asking this because when I compile my programs in sublime, and if it has some way of running indefinitely, then my linux os would keep on eating up my ram/space.

Note: if u compile using terminal , then u can press 'ctrl+c' to halt manually.

My question : Is there any extra command to automatically stop program after some time ? By using some compile arguments ?

Thanks in advance:)

Full text and comments »

  • Vote: I like it
  • +6
  • Vote: I do not like it