tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Does "options P1003_1B_SEMAPHORE" still exist?



On Tue, 6 May 2014 21:27:27 +0200
Joerg Sonnenberger <joerg%britannica.bec.de@localhost> wrote:
> > While I don't think that it causes these problems, an obvious
> > deficiency is that our kernel semaphores get inherited to child
> > processes, while Posix says that they should be closed on exec.
>
> Where?

In
http://pubs.opengroup.org/onlinepubs/009604499/functions/sem_open.html
right in the first chapter:

The semaphore remains usable by this process until the semaphore is
closed by a successful call to sem_close(), _exit(), or one of the exec
functions.

best regards
Matthias


------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------



Home | Main Index | Thread Index | Old Index