ObjFW  Diff

Differences From Artifact [6f344c5f2e]:

To Artifact [a2406ebb91]:


25
26
27
28
29
30
31

32
33
34
35
36
37
38
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39







+







#include <signal.h>

#import "OFApplication.h"
#import "OFString.h"
#import "OFArray.h"
#import "OFDictionary.h"
#import "OFThread.h"
#import "OFRunLoop.h"

#import "OFNotImplementedException.h"

#import "autorelease.h"

#if defined(__MACH__) && !defined(OF_IOS)
# include <crt_externs.h>
291
292
293
294
295
296
297


298


299
300
301
302

303
304
305
306
307
308
309
310
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306

307

308
309
310
311
312
313
314







+
+

+
+



-
+
-







	REGISTER_SIGNAL(SIGUSR2)
#endif
#undef REGISTER_SIGNAL
}

- (void)run
{
	OFRunLoop *runLoop;

	[OFThread _createMainThread];
	runLoop = [[[OFRunLoop alloc] init] autorelease];
	[OFRunLoop _setMainRunLoop: runLoop];

	[delegate applicationDidFinishLaunching];

	for (;;)
	[runLoop run];
		[OFThread sleepForTimeInterval: 86400];
}

- (void)terminate
{
	exit(0);
}