From owner-freebsd-questions Tue Feb 15 8:21:58 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cd.mbn.or.jp (cd.mbn.or.jp [202.217.0.53]) by builder.freebsd.org (Postfix) with ESMTP id 8536D4EB4 for ; Tue, 15 Feb 2000 08:20:00 -0800 (PST) Received: from gateway (cse6-32.kokubunji.mbn.or.jp [210.144.135.194]) by cd.mbn.or.jp (8.9.1/cd.mbn.or.jp-2.0) with SMTP id BAA18029 for ; Wed, 16 Feb 2000 01:20:23 +0900 (JST) Message-ID: <001301bf77d0$5abe7f40$064ca8c0@gateway> From: "Masahiro Ariga" To: Subject: Is semaphore workable during soket transfer Date: Wed, 16 Feb 2000 01:12:00 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG My name is Masahiro Ariga. I have a trouble with Inter Process Comunication(specifically,semaphore). Would anyone help me ? Our system is Server-Client model.Server receives commands from Client, and sends data to Client. Server receives commands from Client in parent process,and data transfer is done in child process forked from parent process. Server uses socket functions,like socket(),select() etc. It was working fine. Then there occured the need to hand the received command over to child process from parent process. So I am determined to use semaphore for communication between parent and child process. I added "option SYSVSEM" line in config file and re-made the kernel and compiled program. When I run the program there occured the errors that were never happend before. Errors are, "select:Invalid argument." and little later "/kernel:pid 185(vs_lk),uid 0:exited on signal 1" vs_lk is program's name. And never transfer data. Isn't it possible to use semaphore while using socket or select functions? How should I avoid errors ? Please enlighten me. Masahiro Ariga mariga@cd.mbn.or.jp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message