emersion / emersion/mrsh

Randomly getting "setpgid: Permission denied"

Open
#193 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
531
Forks
40
PR merge metrics
No merged PRs in 30d

Description

I am getting this error about once a day with simple commands like `ls` or running a python script and I cannot reproduce it manually. Seems to originate from [shell/job.c:42](https://git.sr.ht/~emersion/mrsh/tree/master/item/shell/job.c#L42). There was a similar issue in [fish-shell](https://github.com/fish-shell/fish-shell/issues/4715) and they silenced the error.

Contributor guide

Open the contributing guide

Research direction

Start at shell/job.c:42 and compare the reported setpgid behavior with the linked fish-shell issue. Reproduce or investigate the intermittent error using simple commands such as ls or a Python script, then verify that the completed change prevents the unwanted error without disrupting job handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.