summaryrefslogtreecommitdiffstats
path: root/textproc/iiimf-server/files/patch-iiimsf_src_IMSignal.cpp
blob: 3073025f3c2c65d55f596b1e9fb611485d922b87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- iiimsf/src/IMSignal.cpp.orig	Sat Oct 16 10:28:13 2004
+++ iiimsf/src/IMSignal.cpp	Sun Feb 20 18:43:18 2005
@@ -1,7 +1,11 @@
 #include <config.h>
 #include <sstream>
 #include <sys/types.h>
+#ifdef __FreeBSD__
+#include <sys/wait.h>
+#else
 #include <wait.h>
+#endif
 #include <unistd.h>
 #ifdef HAVE_SIGNAL
 #include <signal.h>
@@ -67,10 +71,8 @@
     stringstream s;
     string spid, signum;
 
-    s << getpid();
-    spid = s.str();
-    s << num;
-    signum = s.str();
+    s << getpid() << " " << num;
+    s >> spid >> signum;
 
     in_segv++;
 
OpenPOWER on IntegriCloud