10 * "Smart" stub for now. This requires job control to be properly implemented.
12 int setpgid(pid_t pid
, pid_t pgid
)
14 pid_t _pid
, _pgid
, cpid
;
22 /* if zero, means current process. */
27 /* if zero, means given pid. */
32 /* right now we only support the equivalent of setsid(), which is
34 if ((_pid
!= cpid
) || (_pgid
!= cpid
)) {
39 if (setsid() == cpid
) {