blob: 9124497e6753a29c2c7deee1f4f9d55c883e4166 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- iiimsf/src/watchdog.c Thu Oct 14 23:07:37 2004
+++ iiimsf/src/watchdog.c Wed Feb 16 19:03:59 2005
@@ -220,7 +220,7 @@
int argc;
char **argv;
{
- const char *httpath="/usr/lib/im/htt_server" ; /* SUNWiiimf Only */
+ const char *httpath=IM_DIRECTORY "/htt_server" ; /* SUNWiiimf Only */
pid_t pgrp;
void (*disp)(int);
char **new_argv, **pp;
@@ -361,6 +361,8 @@
if ((pid_t)(-1) == pgrp)
fprintf (stderr,"cannot set session id");
+#elif defined(__FreeBSD__)
+ pgrp = setsid();
#else /* !SunOS */
pgrp = setpgrp();
#endif /* !SunOS */
|