<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: MUTEX var management in fork/exec context in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mutex-var-management-in-fork-exec-context/m-p/4624388#M676017</link>
    <description>&amp;gt;It is needed to unlock them in the child code, before proceeding?&lt;BR /&gt;&lt;BR /&gt;You need to set up pthread_atfork(3) handlers that unlocks each mutex.&lt;BR /&gt;</description>
    <pubDate>Tue, 27 Apr 2010 08:57:59 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2010-04-27T08:57:59Z</dc:date>
    <item>
      <title>MUTEX var management in fork/exec context</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mutex-var-management-in-fork-exec-context/m-p/4624387#M676016</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I'm using MUTEX varibales in a multithread context to protect data integrity.&lt;BR /&gt;&lt;BR /&gt;In the same context I have to use fork/exec paradigm and the CHILD processes ARE NOT  multithreading.&lt;BR /&gt;&lt;BR /&gt;My question is: how the MUTEX variables are managed by the child process? It is needed to unlock them in the child code, before proceeding?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Giuseppe&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Apr 2010 08:47:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mutex-var-management-in-fork-exec-context/m-p/4624387#M676016</guid>
      <dc:creator>Fedele Giuseppe</dc:creator>
      <dc:date>2010-04-27T08:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: MUTEX var management in fork/exec context</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mutex-var-management-in-fork-exec-context/m-p/4624388#M676017</link>
      <description>&amp;gt;It is needed to unlock them in the child code, before proceeding?&lt;BR /&gt;&lt;BR /&gt;You need to set up pthread_atfork(3) handlers that unlocks each mutex.&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Apr 2010 08:57:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mutex-var-management-in-fork-exec-context/m-p/4624388#M676017</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-04-27T08:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: MUTEX var management in fork/exec context</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mutex-var-management-in-fork-exec-context/m-p/4624389#M676018</link>
      <description>Another question: how to manage signals in fork/exec context?&lt;BR /&gt;&lt;BR /&gt;It is needed to reset signals handling mechanism in the child process?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Apr 2010 12:17:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mutex-var-management-in-fork-exec-context/m-p/4624389#M676018</guid>
      <dc:creator>Fedele Giuseppe</dc:creator>
      <dc:date>2010-04-28T12:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: MUTEX var management in fork/exec context</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mutex-var-management-in-fork-exec-context/m-p/4624390#M676019</link>
      <description>Hi Giuseppe:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Another question: how to manage signals in fork/exec context?&lt;BR /&gt;&lt;BR /&gt;The manpages for 'fork()' note:&lt;BR /&gt;&lt;BR /&gt;"The child process inherits the following attributes from the parent process:&lt;BR /&gt;...&lt;BR /&gt;Signal handling settings (SIG_DFL, SIG_IGN, address).&lt;BR /&gt;&lt;BR /&gt;...[BUT]...&lt;BR /&gt;&lt;BR /&gt;The child process differs from the parent process in the following ways:&lt;BR /&gt;The set of signals pending for the child process is initialized to the empty set."&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 28 Apr 2010 12:28:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mutex-var-management-in-fork-exec-context/m-p/4624390#M676019</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-04-28T12:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: MUTEX var management in fork/exec context</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mutex-var-management-in-fork-exec-context/m-p/4624391#M676020</link>
      <description>Hi James,&lt;BR /&gt;&lt;BR /&gt;if I have well understood, the child inherits all signals handling settings.&lt;BR /&gt;&lt;BR /&gt;But it is not clear for me the meaning of the sentence:&lt;BR /&gt;"The set of signals pending for the child process"&lt;BR /&gt;&lt;BR /&gt;Many thanks&lt;BR /&gt;&lt;BR /&gt;Giuseppe</description>
      <pubDate>Wed, 28 Apr 2010 13:10:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mutex-var-management-in-fork-exec-context/m-p/4624391#M676020</guid>
      <dc:creator>Fedele Giuseppe</dc:creator>
      <dc:date>2010-04-28T13:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: MUTEX var management in fork/exec context</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mutex-var-management-in-fork-exec-context/m-p/4624392#M676021</link>
      <description>Hi (again) Giuseppe:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; But it is not clear for me the meaning of the sentence: "The set of signals pending for the child process is initialized to the empty set."&lt;BR /&gt;&lt;BR /&gt;I read this to say that any signals that were pending (delivery) because they were blocked by your code would simply be discarded so that the child process created by the fork() would be devoid of un-delivered signals.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 28 Apr 2010 13:37:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mutex-var-management-in-fork-exec-context/m-p/4624392#M676021</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-04-28T13:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: MUTEX var management in fork/exec context</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mutex-var-management-in-fork-exec-context/m-p/4624393#M676022</link>
      <description>Ok,&lt;BR /&gt;&lt;BR /&gt;so, no actions for signal handling are needed in child process code, right?&lt;BR /&gt;&lt;BR /&gt;Giuseppe</description>
      <pubDate>Wed, 28 Apr 2010 13:53:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mutex-var-management-in-fork-exec-context/m-p/4624393#M676022</guid>
      <dc:creator>Fedele Giuseppe</dc:creator>
      <dc:date>2010-04-28T13:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: MUTEX var management in fork/exec context</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mutex-var-management-in-fork-exec-context/m-p/4624394#M676023</link>
      <description>&amp;gt;no actions for signal handling are needed in child process code, right?&lt;BR /&gt;&lt;BR /&gt;If you are going to exec, you need to rearm the signal handlers.</description>
      <pubDate>Wed, 28 Apr 2010 16:58:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mutex-var-management-in-fork-exec-context/m-p/4624394#M676023</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-04-28T16:58:41Z</dc:date>
    </item>
  </channel>
</rss>

