linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: problem with PROGRAM
Date: Fri, 02 Dec 2005 03:03:15 +0000	[thread overview]
Message-ID: <20051202030315.GB19593@vrfy.org> (raw)
In-Reply-To: <438D4B0F.5050303@magellan-technology.com>

On Thu, Dec 01, 2005 at 04:00:49PM +1100, Aras Vaichas wrote:
> Aras Vaichas wrote:
> >rule:
> >KERNEL="usb[0-9]", ACTION="add", ENV{PHYSDEVDRIVER}="usbnet", 
> >PROGRAM="/etc/udev/scripts/start_autoipd.sh %k"
> 
> UPDATE:
> 
> I changed the rule from PROGRAM to RUN like so:
> KERNEL="usb[0-9]", ACTION="add", ENV{PHYSDEVDRIVER}="usbnet", 
> RUN+="/etc/udev/scripts/start_autoipd.sh %k"
> 
> and the process no longer becomes a zombie and it all appears to work 
> correctly.
> 
> Why would PROGRAM cause this situation but RUN doesn't?

PROGRAM is to request information from external programs to name a
device. It is not to start or run anything else. RUN will run after
the device node is created. But there is no real reason to behave
differently in your case.

Again, make sure you are detaching immediately from the event process,
and don't block longer than needed, not in PROGRAM, and not in RUN. It
will cause problems for the event sequence handling. Start your program
in the background and just exit.

Kay


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id\x16865&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

      parent reply	other threads:[~2005-12-02  3:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-30  6:47 problem with PROGRAM Aras Vaichas
2005-11-30  7:39 ` Greg KH
2005-11-30 16:43 ` linas
2005-11-30 23:29 ` Kay Sievers
2005-12-01  4:34 ` Aras Vaichas
2005-12-01  5:00 ` Aras Vaichas
2005-12-02  3:03 ` Kay Sievers [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051202030315.GB19593@vrfy.org \
    --to=kay.sievers@vrfy.org \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).