From owner-freebsd-questions Mon Aug 10 16:02:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA14106 for freebsd-questions-outgoing; Mon, 10 Aug 1998 16:02:33 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from Altitude.CAM.ORG (Altitude.CAM.ORG [198.168.100.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA14099; Mon, 10 Aug 1998 16:02:30 -0700 (PDT) (envelope-from intmktg@cam.org) Received: from cam.org (here@Dialup-614.HIP.CAM.ORG [199.84.45.109]) by Altitude.CAM.ORG (8.8.4/8.8.4) with ESMTP id TAA03547; Mon, 10 Aug 1998 19:02:07 -0400 (EDT) Message-ID: <35CF7AA0.208CBEBA@cam.org> Date: Mon, 10 Aug 1998 18:56:32 -0400 From: Marc Tardif X-Mailer: Mozilla 4.05 [en] (Win95; I) MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.ORG CC: freebsd-questions@FreeBSD.ORG Subject: semop syscall trouble Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I'm trying to use the semop(), but the program stalls right at that system call. I'm using 2.2.5 with SYSVSHM, SYSVSEM, SYSVMSG compiled in the kernel. Following is part of my code as well as the last couple lines from ktrace: dbms.c static void semcall(sid, op) int sid; int op; { struct sembuf sb; sb.sem_num = 0; sb.sem_op = op; sb.sem_flg = 0; if (semop(sid, &sb, 1) == -1) syserr("semop"); } ktrace.out 232 dbms CALL semsys(0x2,0x10001,0xefbfdc24,0x1,0) 232 dbms PSIG SIGINT SIG_DFL SIGINT SIG_DFL is obviously where I Ctrl-C to leave the stalled program. Any insight would be greatly appreciated. Thanks in advance, Marc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message