diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-03-11 01:36:12 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:35:09 -0700 |
commit | 35b38379bac87ebf4d0cc6884feff588ee859d5f (patch) | |
tree | dbc219e051505ba97d1be22d34ca4caa3051ad42 /namedev.h | |
parent | a3b37a073d52ff01d4ef023a10f13316da4c9966 (diff) |
[PATCH] cleanup callout fork
Here I change the callout fork logic.
The current cersion is unable to read a pipe which is not flushed at once,
Now we read until it's closed.
The maximum argument count is calculated by the strlen now. We have 100
chars for our result buffer so we can't have more than 50 parameters.
So it's much more clear what will happen now and not some magic boundary
where we use shell behind it.
Parameter can be combined to one by using apostrophes.
this on works now:
BUS="scsi", PROGRAM="/bin/sh -c 'echo foo3 foo4 foo5 foo6 foo7 foo8 foo9 | sed s/foo9/bar9/'", KERNEL="sda3", NAME="%c{7}"
Two new test are also added.
Diffstat (limited to 'namedev.h')
-rw-r--r-- | namedev.h | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -51,7 +51,6 @@ struct sysfs_class_device; #define ATTR_PARTITIONS "all_partitions" #define PARTITIONS_COUNT 15 -#define PROGRAM_MAXARG 10 #define MAX_SYSFS_PAIRS 5 #define RULEFILE_EXT ".rules" |