From 1031ba86aef2258bea2e17491628b140ae862721 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 1 May 2000 21:49:41 +0000 Subject: do not use semconfig() --- usr.bin/ipcs/ipcs.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/usr.bin/ipcs/ipcs.c b/usr.bin/ipcs/ipcs.c index 61f55dbba70..c88b5593b6e 100644 --- a/usr.bin/ipcs/ipcs.c +++ b/usr.bin/ipcs/ipcs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipcs.c,v 1.9 1999/08/16 16:58:22 millert Exp $ */ +/* $OpenBSD: ipcs.c,v 1.10 2000/05/01 21:49:40 deraadt Exp $ */ /* $NetBSD: ipcs.c,v 1.10.6.1 1996/06/07 01:53:47 thorpej Exp $ */ /* @@ -53,7 +53,6 @@ #include #include -int semconfig __P((int, ...)); void usage __P((void)); extern char *__progname; /* from crt0.o */ @@ -446,11 +445,6 @@ main(argc, argv) seminfo.semaem); } if (display & SEMINFO) { - if (semconfig(SEM_CONFIG_FREEZE) != 0) { - perror("semconfig"); - fprintf(stderr, - "Can't lock semaphore facility - winging it...\n"); - } if (kvm_read(kd, symbols[X_SEMA].n_value, &sema, sizeof(sema)) != sizeof(sema)) errx(1, "kvm_read (%s): %s", @@ -508,8 +502,6 @@ main(argc, argv) } } - (void) semconfig(SEM_CONFIG_THAW); - printf("\n"); } } else -- cgit v1.2.3