git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3180 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1998-11-06 14:43:07 +00:00
parent c030c31253
commit e74ff8cf7b
2 changed files with 22 additions and 0 deletions

View file

@ -20,6 +20,7 @@
# Things to do after installing
after-install::
$(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
# before-uninstall::

View file

@ -744,6 +744,27 @@ main()
GDNCServer *server;
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];
server = [GDNCServer new];
[pool release];