We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d62bb3 commit 77463d8Copy full SHA for 77463d8
pymux/process.py
@@ -426,7 +426,11 @@ def get_name_for_fd(fd):
426
"""
427
Return the process name for a given process ID.
428
429
- pgrp = os.tcgetpgrp(fd)
+ try:
430
+ pgrp = os.tcgetpgrp(fd)
431
+ except OSError:
432
+ # See: https://github.com/jonathanslenders/pymux/issues/46
433
+ return
434
435
try:
436
with open('/proc/%s/cmdline' % pgrp, 'rb') as f:
@@ -440,7 +444,10 @@ def get_name_for_fd(fd):
440
444
441
445
442
446
443
447
448
449
450
451
452
453
return get_proc_name(pgrp)
0 commit comments