mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +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
c030c31253
commit
e74ff8cf7b
2 changed files with 22 additions and 0 deletions
|
@ -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::
|
||||
|
|
21
Tools/gdnc.m
21
Tools/gdnc.m
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue