mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3180 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e101fd6f83
commit
5ab685e071
2 changed files with 22 additions and 0 deletions
|
@ -20,6 +20,7 @@
|
||||||
# Things to do after installing
|
# Things to do after installing
|
||||||
after-install::
|
after-install::
|
||||||
$(INSTALL) -m 05755 $(GNUSTEP_OBJ_DIR)/gdomap $(GNUSTEP_INSTALLATION_DIR)/Tools/$(GNUSTEP_TARGET_DIR)
|
$(INSTALL) -m 05755 $(GNUSTEP_OBJ_DIR)/gdomap $(GNUSTEP_INSTALLATION_DIR)/Tools/$(GNUSTEP_TARGET_DIR)
|
||||||
|
$(INSTALL) -m 05755 $(GNUSTEP_OBJ_DIR)/gdnc $(GNUSTEP_INSTALLATION_DIR)/Tools/$(GNUSTEP_TARGET_DIR)
|
||||||
|
|
||||||
# Things to do before uninstalling
|
# Things to do before uninstalling
|
||||||
# before-uninstall::
|
# before-uninstall::
|
||||||
|
|
21
Tools/gdnc.m
21
Tools/gdnc.m
|
@ -744,6 +744,27 @@ main()
|
||||||
GDNCServer *server;
|
GDNCServer *server;
|
||||||
NSAutoreleasePool *pool;
|
NSAutoreleasePool *pool;
|
||||||
|
|
||||||
|
switch (fork())
|
||||||
|
{
|
||||||
|
case -1:
|
||||||
|
fprintf(stderr, "gdnc - fork failed - bye.\n");
|
||||||
|
exit(1);
|
||||||
|
|
||||||
|
case 0:
|
||||||
|
/*
|
||||||
|
* Try to run in background.
|
||||||
|
*/
|
||||||
|
#ifdef NeXT
|
||||||
|
setpgrp(0, getpid());
|
||||||
|
#else
|
||||||
|
setsid();
|
||||||
|
#endif
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
pool = [NSAutoreleasePool new];
|
pool = [NSAutoreleasePool new];
|
||||||
server = [GDNCServer new];
|
server = [GDNCServer new];
|
||||||
[pool release];
|
[pool release];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue