October 06, 2013
On Sunday, 6 October 2013 at 02:20:29 UTC, Sean Kelly wrote:
> You need to trap SIGINT. But then you're stuck in a signal handler and so can't do much to clean up.

yeah, what I decided to do was to just set a global variable when the signal arrives and then I checked it on each iteration of my main event loop.

Alas it isn't as generic as I was hoping, but at least it works for me.
October 06, 2013
On Saturday, October 05, 2013 16:33:40 Sean Kelly wrote:
> On Oct 5, 2013, at 4:09 PM, Andrej Mitrovic <andrej.mitrovich@gmail.com>
wrote:
> >> On 9/30/13, Adam D. Ruppe <destructionator@gmail.com> wrote:
> >> Is there anything we can do to automatically clean up if the user
> >> hits ctrl+c on Linux?
> > 
> > What's interesting is I just ran into this SEH enum in druntime for
> > win32 by chance:
> > CONTROL_C_EXIT
> > 
> > But there's no equivalent for linux.
> 
> You need to trap SIGINT. But then you're stuck in a signal handler and so can't do much to clean up.

Well, you could do something like set a flag for the various threads to watch and throw when it's set to true, but you'd probably have to design everything around that to do anything like that, so it's arguably not a particularly good solution except in cases where you absolutely need to make sure that stuff shuts down correctly, and if you really need that, you should probably take another approach (like save regularly), since you can never guarantee that your app is going to shut down properly anyway (e.g. the power goes out).

- Jonathan M Davis
October 31, 2013
On 10/04/2013 01:18 AM, deadalnix wrote:
>
> A media player won't kill anyone.

I'm not sure. Excerpt from the iTunes EULA:

"You also agree that you will not use these products for any purposes prohibited by United States law, including, without limitation, the development, design, manufacture or production of nuclear, missiles, or chemical or biological weapons."

http://www.apple.com/legal/internet-services/itunes/appstore/dev/stdeula/
November 01, 2013
On 2013-10-31 23:20, Timon Gehr wrote:

> I'm not sure. Excerpt from the iTunes EULA:
>
> "You also agree that you will not use these products for any purposes
> prohibited by United States law, including, without limitation, the
> development, design, manufacture or production of nuclear, missiles, or
> chemical or biological weapons."
>
> http://www.apple.com/legal/internet-services/itunes/appstore/dev/stdeula/

Haha :)

-- 
/Jacob Carlborg
November 01, 2013
On Thursday, 31 October 2013 at 22:20:23 UTC, Timon Gehr wrote:
>
> I'm not sure. Excerpt from the iTunes EULA:
>
> "You also agree that you will not use these products for any purposes prohibited by United States law, including, without limitation, the development, design, manufacture or production of nuclear, missiles, or chemical or biological weapons."
>
> http://www.apple.com/legal/internet-services/itunes/appstore/dev/stdeula/

I would classify forcing someone to use iTunes as "psychological warfare".  Unfortunately, that's not covered by the EULA. ;)

-Wyatt
November 01, 2013
On 2013-11-01 12:56, Wyatt wrote:

> I would classify forcing someone to use iTunes as "psychological
> warfare".  Unfortunately, that's not covered by the EULA. ;)

Then you're good to go :)

-- 
/Jacob Carlborg
1 2 3 4 5 6 7 8
Next ›   Last »