add a mini-faq about std{in,out,err}
authorMike Frysinger <vapier@gentoo.org>
Fri, 1 Feb 2008 01:41:57 +0000 (01:41 -0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 1 Feb 2008 01:41:57 +0000 (01:41 -0000)
docs/mdev.txt

index 0b2c37d9908eccc1e97c816ce01a2d468fccbe63..4a4451b4dd956245c0c558ed707ebf40c7172ed1 100644 (file)
@@ -62,10 +62,12 @@ The special characters have the meaning:
        * Run both after creating and before removing the device.
 
 The command is executed via the system() function (which means you're giving a
-command to the shell), so make sure you have a shell installed at /bin/sh.
+command to the shell), so make sure you have a shell installed at /bin/sh.  You
+should also keep in mind that the kernel executes hotplug helpers with stdin,
+stdout, and stderr connected to /dev/null.
 
 For your convenience, the shell env var $MDEV is set to the device name.  So if
-the device 'hdc' was matched, MDEV would be set to "hdc".
+the device "hdc" was matched, MDEV would be set to "hdc".
 
 ----------
  FIRMWARE