<command>
<option>cmdline_to_pid</option>
</command>
- <option>pid</option>
+ <option>string</option>
</term>
- <listitem>PID of process invoked with this command line
+ <listitem>PID of the first process that has string in it's
+ commandline
<para /></listitem>
</varlistentry>
<varlistentry>
for(i = 0; i < bytes_read - 1; i++) {
if(buf[i] == 0) buf[i] = ' ';
}
- if(strcmp(buf, obj->data.s) == 0) {
+ if(strstr(buf, obj->data.s) != NULL) {
snprintf(p, p_max_size, "%s", entry->d_name);
free(buf);
closedir(dir);