1
0
mirror of git://git.suckless.org/ubase synced 2024-12-22 06:40:38 +00:00

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

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++) {