Add comment to clarify why we skip '-' in pidof(8)

This commit is contained in:
sin 2013-09-04 13:13:44 +01:00
parent 41794271a5
commit ff85b15939
1 changed files with 1 additions and 0 deletions

View File

@ -83,6 +83,7 @@ main(int argc, char *argv[])
*p = '\0';
cmd = basename(cmdline);
}
/* Workaround for login shells */
if (cmd[0] == '-')
cmd++;
for (i = 0; i < argc; i++) {