K 10 svn:author V 6 jilles K 8 svn:date V 27 2010-12-05T16:09:03.289597Z K 7 svn:log V 272 sh: jobs -p: Do not ask the kernel for the pgid. The getpgid() call will fail if the first process in the job has already terminated, resulting in output of "-1". The pgid of a job is always the pid of the first process in the job and other code already relies on this. END