New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process title set to q instead of quodlibet #2826

Closed
marcelpaulo opened this Issue Apr 10, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@marcelpaulo

marcelpaulo commented Apr 10, 2018

This had been reported in #736 and fixed in revision af894c6, but somehow it seems to have been dropped along the way.

Getting quodlibet's PID:

+paulo@monk:~/tmp$ ps -ef | grep quodlibet
paulo    19093  2376  4 19:22 ?        00:00:51 python3 /home/paulo/.local/bin/quodlibet

Checking its process title and its command line:

+paulo@monk:~/tmp$ ps -o pid,comm,args 19093
  PID COMMAND         COMMAND
19093 q               python3 /home/paulo/.local/bin/quodlibet

As you can see, its process title is set to q. I bumped into this when I tried to pgrep quodlibet in a script:

+paulo@monk:~/tmp$ pgrep quodlibet
+paulo@monk:~/tmp$ 

pgrep works on the process titles, and doesn't find quodlibet because its process title is set to q.

I'm running quodlibet 07f603a on Xubuntu 17.10.

@declension declension added the bug label Apr 11, 2018

@declension

This comment has been minimized.

Member

declension commented Apr 11, 2018

Confirmed on 07f603a (and 294 commits before that, FWIW).

Thanks for the report.

@lazka lazka closed this in 7e1c27e May 8, 2018

lazka added a commit that referenced this issue May 8, 2018

libc.prctl: properly set argtypes/restype. See #2826
So ctypes doesn't have to guess what C types we want to pass.
@marcelpaulo

This comment has been minimized.

marcelpaulo commented May 8, 2018

Thanks, @lazka ! I've just tested it, it's fixed:

:paulo:~/src/quodlibet$ ps -ef | grep quodlibet
paulo    13404  3733  6 06:35 ?        00:00:27 python3 /home/paulo/.local/bin/quodlibet
:paulo:~/src/quodlibet$ ps -o pid,comm,args 13404
  PID COMMAND         COMMAND
13404 quodlibet       python3 /home/paulo/.local/bin/quodlibet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment