+ while (i < pid_argc && pid_argv[i][0] == '-') {
+ /*
+ * Skip interpreter options, unless they're things which
+ * make the next non-option argument not a script name
+ * (e.g. sh -c, perl -e).
+ */
+ if (stop_opt && !strncmp(pid_argv[i], stop_opt, strlen(stop_opt)))
+ return -1; /* no match */
+ i++;
+ }