<?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: Blocking on /dev/null in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/blocking-on-dev-null/m-p/2471622#M16699</link>
    <description>Hi Ed,&lt;BR /&gt;&lt;BR /&gt;You can have as many processes as you want writing to (or reading from) /dev/null without blocking, within the kernel limit for maximum processes or files open, of course.&lt;BR /&gt;&lt;BR /&gt;Writing to /dev/null simply discards data, while reading from always returns 0 bytes.&lt;BR /&gt;&lt;BR /&gt;I don't know exactly how this is implemented but I guess that there is a special hook in the kernel code to achieve this.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Dan</description>
    <pubDate>Thu, 07 Dec 2000 16:11:20 GMT</pubDate>
    <dc:creator>Dan Hetzel</dc:creator>
    <dc:date>2000-12-07T16:11:20Z</dc:date>
    <item>
      <title>Blocking on /dev/null</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/blocking-on-dev-null/m-p/2471621#M16698</link>
      <description>Will multiple processes writing to /dev/null block on each other or run as if they had their own copy of the file?</description>
      <pubDate>Thu, 07 Dec 2000 15:28:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/blocking-on-dev-null/m-p/2471621#M16698</guid>
      <dc:creator>Ed Hon</dc:creator>
      <dc:date>2000-12-07T15:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Blocking on /dev/null</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/blocking-on-dev-null/m-p/2471622#M16699</link>
      <description>Hi Ed,&lt;BR /&gt;&lt;BR /&gt;You can have as many processes as you want writing to (or reading from) /dev/null without blocking, within the kernel limit for maximum processes or files open, of course.&lt;BR /&gt;&lt;BR /&gt;Writing to /dev/null simply discards data, while reading from always returns 0 bytes.&lt;BR /&gt;&lt;BR /&gt;I don't know exactly how this is implemented but I guess that there is a special hook in the kernel code to achieve this.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Dan</description>
      <pubDate>Thu, 07 Dec 2000 16:11:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/blocking-on-dev-null/m-p/2471622#M16699</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2000-12-07T16:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Blocking on /dev/null</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/blocking-on-dev-null/m-p/2471623#M16700</link>
      <description>Hi Ed,&lt;BR /&gt;&lt;BR /&gt;They won't block as /dev/null isn't a regular file, it's a 'pseudo driver' special file.  &lt;BR /&gt;&lt;BR /&gt;Data written to it will be handled by a kernel routine which simply does nothing with it - throws it away.&lt;BR /&gt;&lt;BR /&gt;If you do 'fuser /dev/null' you'll find that many of your server's processes will have /dev/null open.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Thu, 07 Dec 2000 16:17:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/blocking-on-dev-null/m-p/2471623#M16700</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-12-07T16:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Blocking on /dev/null</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/blocking-on-dev-null/m-p/2471624#M16701</link>
      <description>I don't think /dev/null blocks on read or write.  Note that&lt;BR /&gt;reading from /dev/null always returns 0 bytes, and NOT&lt;BR /&gt;an endless stream of zeroes (which some systems provide&lt;BR /&gt;via the special file /dev/zero).&lt;BR /&gt;&lt;BR /&gt;Processes might block on writing to /dev/null if someone&lt;BR /&gt;has acquired a lock on it, and the processes honor the lock,&lt;BR /&gt;or if someone has acquired an enforced lock on it.  /dev/null&lt;BR /&gt;should NOT have the enforcement bit set, so the latter case&lt;BR /&gt;shouldn't be possible.  (The lock enforcement bit is the same&lt;BR /&gt;as the setgid bit.)&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Dec 2000 19:13:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/blocking-on-dev-null/m-p/2471624#M16701</guid>
      <dc:creator>Gregory Fruth</dc:creator>
      <dc:date>2000-12-07T19:13:30Z</dc:date>
    </item>
  </channel>
</rss>

