From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e7a9a297667042f3,start X-Google-Attributes: gidfee84,public X-Google-Thread: 1164f8,e7a9a297667042f3,start X-Google-Attributes: gid1164f8,public From: smiller@bnr.ca (Scott Miller) Subject: Multithreaded programs and RPCs Date: 1995/09/02 Message-ID: <4289kh$hv6@bcarh8ab.bnr.ca>#1/1 X-Deja-AN: 109306979 distribution: world organization: Bell-Northern Research Ltd. reply-to: smiller@bnr.ca newsgroups: comp.sys.dec,comp.unix.osf.osf1 originator: smiller@bcarhe2d I wrote a simple program that spawns off a thread to act as an RPC server. It core dumps. However, if I spawn off a thread to do the 'main' loop, and use the main thread to act as the RPC server, it (seems to) work. Why is this? Can a non-first thread in a process act as an RPC server? Do I need to compile/link with some different switches? ONC RPC, OSF1 V3.2, using cc options '-threads -lc_r -lpthreads'. I've also thrown in '-lmach -lrpc -lrpcsvc'. Any clues? -- -- Scott Miller, in the bowels of Bell-Northern Research smiller@bnr.ca I don't speak for BNR; BNR doesn't speak for me. aa438@freenet.carleton.ca