Article View: es.comp.os.linux.programacion
Article #8911Re: ¿Por qué da un Segmentation Fault?
From: NotFound
Date: Mon, 16 Sep 2002 18:45
Date: Mon, 16 Sep 2002 18:45
35 lines
2143 bytes
2143 bytes
Jordi escribió: > Je, si tuviera las man instaladas... pero mira: > > int sem_init(sem_t *sem, int pshared, unsigned int value); > > If the pshared argument has a non-zero value, then the semaphore is > shared between processes; in this case, any process that can access the > semaphore sem can use sem for performing sem_wait(3RT) , > sem_trywait(3RT) , sem_post(3RT) , and sem_destroy(3RT) operations. > > Si el segundo parámetro no es cero, entonces el semáforo se puede usar > entre procesos. Pues en la man ademas de eso dice: LinuxThreads currently does not sup port process-shared semaphores, thus sem_init always returns with error ENOSYS if pshared is not zero. > devuelve: > sem_init: Function not implemented > ¿Cómo que no está implementada? Me estoy volviendo mico. ¿¿Me lo expliquen?? Pues eso, que la comparticion entre procesos no esta implementada y te dice que esa funcion (la de comparticion, no la funcion sem_init) no esta implementada. Salu2
Technical Details
Message-ID:
<3D8626E7.10F4A993@tengo.no>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!newsfeed.esat.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!cesio.mundo-r.com!not-for-mailReferences:
<am51kh$dt4$1@nsnmpen2-gest.nuria.telefonica-data.net> <3D861298.7E42AA78@tengo.no> <am577m$frr$1@nsnmpen2-gest.nuria.telefonica-data.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f86c8,b9a6d11d918e2af1 X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2002-09-16 12:41:22 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!newsfeed.esat.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!cesio.mundo-r.com!not-for-mail From: NotFound <correo@tengo.no> Newsgroups: es.comp.os.linux.programacion Subject: Re: ¿Por qué da un Segmentation Fault? Date: Mon, 16 Sep 2002 20:45:59 +0200 Organization: Another Netscape Collabra Server User Lines: 35 Message-ID: <3D8626E7.10F4A993@tengo.no> References: <am51kh$dt4$1@nsnmpen2-gest.nuria.telefonica-data.net> <3D861298.7E42AA78@tengo.no> <am577m$frr$1@nsnmpen2-gest.nuria.telefonica-data.net> NNTP-Posting-Host: cm65109.red.mundo-r.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailer: Mozilla 4.77 [es] (X11; U; Linux 2.4.4-4GB i686) X-Accept-Language: en